Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


RefreshEventArgs Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides data for the Refreshed event.

C#
public class RefreshEventArgs : EventArgs
Inheritance
RefreshEventArgs

Examples

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

Remarks

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.

Constructors

RefreshEventArgs(Object)

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

RefreshEventArgs(Type)

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

Properties

ComponentChanged

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

TypeChanged

Gets the Type that changed its properties or events.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Termék Verziók
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also