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 TypeA Refreshed event is also raised when a Type is changed during design time.

RefreshEventArgs对象指定Refreshed与事件关联的数据; 即, 组件和更改的组件类型。A 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

获取已更改属性、事件或扩展程序的组件。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()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅