RefreshEventArgs 類別

定義

提供 Refreshed 事件的資料。Provides data for the Refreshed event.

public ref class RefreshEventArgs : EventArgs
public class RefreshEventArgs : EventArgs
type RefreshEventArgs = class
    inherit EventArgs
Public Class RefreshEventArgs
Inherits EventArgs
繼承
RefreshEventArgs

範例

如需RefreshEventArgs類別的範例, 請參閱RefreshEventHandler委派中的範例程式碼。For an example of the RefreshEventArgs class, see the sample code in the RefreshEventHandler delegate.

備註

通常, 在處理常式的生命週期內, 元件資訊不會變更。Typically, component information does not change for the life of a process. 不過, 在設計階段, 您可以變更元件的屬性或事件。During design time, however, you can change the component's properties or events. 因此, 中TypeDescriptor的元件資訊會變成過期, Refreshed並引發事件。As a result, the component's information in TypeDescriptor becomes out-of-date, and a Refreshed event is raised. 當在設計階段變更時Refreshed ,也Type會引發事件。A Refreshed event is also raised when a Type is changed during design time.

物件會指定Refreshed與事件相關聯的資料, 也就是元件和已變更之元件的類型。 RefreshEventArgsA RefreshEventArgs object specifies the data associated with the Refreshed event; that is, the component and the type of component that changed.

類別會提供ComponentChangedTypeChanged屬性, 以取得引發事件的元件或類型。 RefreshEventArgsThe RefreshEventArgs class provides ComponentChanged and TypeChanged properties to get the component or type that raised the event.

建構函式

RefreshEventArgs(Object)

使用已經變更的元件來初始化 RefreshEventArgs 類別的新執行個體。Initializes a new instance of the RefreshEventArgs class with the component that has changed.

RefreshEventArgs(Type)

使用已變更元件的類型來初始化 RefreshEventArgs 類別的新執行個體。Initializes a new instance of the RefreshEventArgs class with the type of component that has changed.

屬性

ComponentChanged

取得已變更其屬性、事件或擴充項 (Extender) 的元件。Gets the component that changed its properties, events, or extenders.

TypeChanged

取得已變更其屬性或事件的 TypeGets the Type that changed its properties or events.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱