Gets a collection of events for a specified component.
[Visual Basic] Overloads Public Shared Function GetEvents( _ ByVal component As Object _ ) As EventDescriptorCollection [C#] public static EventDescriptorCollection GetEvents( object component ); [C++] public: static EventDescriptorCollection* GetEvents( Object* component ); [JScript] public static function GetEvents( component : Object ) : EventDescriptorCollection;
An EventDescriptorCollection with the events for this component.
Retrieves an array of events that the given component instance provides. This can differ from the set of events the class provides. If the component is sited, the site may add or remove additional events.
TypeDescriptor Class | TypeDescriptor Members | System.ComponentModel Namespace | TypeDescriptor.GetEvents Overload List | TypeDescriptor | EventDescriptor | EventDescriptorCollection | PropertyDescriptor