Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RefreshEventArgs Class

 

Provides data for the Refreshed event.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

System.Object
  System.EventArgs
    System.ComponentModel.RefreshEventArgs

[HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)]
public class RefreshEventArgs : EventArgs

NameDescription
System_CAPS_pubmethodRefreshEventArgs(Object)

Initializes a new instance of the RefreshEventArgs class with the component that has changed.

System_CAPS_pubmethodRefreshEventArgs(Type)

Initializes a new instance of the RefreshEventArgs class with the type of component that has changed.

NameDescription
System_CAPS_pubpropertyComponentChanged

Gets the component that changed its properties, events, or extenders.

System_CAPS_pubpropertyTypeChanged

Gets the Type that changed its properties or events.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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. As a result, the component's information in TypeDescriptor becomes out-of-date, and a Refreshed event is raised. A Refreshed event is also raised when a Type is changed during design time.

A RefreshEventArgs object specifies the data associated with the Refreshed event; that is, the component and the type of component that changed.

The RefreshEventArgs class provides ComponentChanged and TypeChanged properties to get the component or type that raised the event.

For an example of the RefreshEventArgs class, see the sample code in the RefreshEventHandler delegate.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft