NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeDescriptor.GetEvents (Object, Boolean)

Gets a collection of events for a specified component.

[Visual Basic]
Overloads Public Shared Function GetEvents( _
   ByVal component As Object, _
   ByVal fNoCustomTypeDesc As Boolean _
) As EventDescriptorCollection
[C#]
public static EventDescriptorCollection GetEvents(
   object component,
   bool fNoCustomTypeDesc
);
[C++]
public: static EventDescriptorCollection* GetEvents(
   Object* component,
   bool fNoCustomTypeDesc
);
[JScript]
public static function GetEvents(
   component : Object,
   fNoCustomTypeDesc : Boolean
) : EventDescriptorCollection;

Parameters

component
A component to get the events for.
fNoCustomTypeDesc
true if TypeDescriptor has been called by an instance of ICustomTypeDescriptor; otherwise, false.

Return Value

An EventDescriptorCollection with the events for this component.

Remarks

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 can add or remove additional events.

See Also

TypeDescriptor Class | TypeDescriptor Members | System.ComponentModel Namespace | TypeDescriptor.GetEvents Overload List | TypeDescriptor | EventDescriptor | EventDescriptorCollection | PropertyDescriptor | ICustomTypeDescriptor