CustomTypeDescriptor.GetEvents Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a collection of event descriptors for the object represented by this type descriptor.

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

public virtual EventDescriptorCollection GetEvents()

Return Value

Type: System.ComponentModel.EventDescriptorCollection

An EventDescriptorCollection containing the event descriptors for the object represented by this type descriptor. The default is Empty.

If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetEvents method will call the parent's corresponding method.

.NET Framework
Available since 2.0
Return to top
Show: