TypeDescriptor.GetEvents Method (Type)

Returns the collection of events for a specified type of component.

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

public static EventDescriptorCollection GetEvents(
	Type componentType
)

Parameters

componentType
Type: System.Type

The Type of the target component.

Return Value

Type: System.ComponentModel.EventDescriptorCollection
An EventDescriptorCollection with the events for this component.

Call this version of this method only when you do not have an instance of the object.

If the componentType parameter is null, an empty collection is returned.

The order of the returned collection is not guaranteed to be identical between calls, so always order it before use.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft