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 (Type, MemberAttribute[])

Gets a collection of events for a specified type of component using a specified array of attributes as a filter.

[Visual Basic]
Overloads Public Shared Function GetEvents( _
   ByVal componentType As Type, _
   ByVal attributes() As MemberAttribute _
) As EventDescriptorCollection
[C#]
public static EventDescriptorCollection GetEvents(
   Type componentType,
   MemberAttribute[] attributes
);
[C++]
public: static EventDescriptorCollection* GetEvents(
   Type* componentType,
   MemberAttribute* attributes[]
);
[JScript]
public static function GetEvents(
   componentType : Type,
   attributes : MemberAttribute[]
) : EventDescriptorCollection;

Parameters

componentType
A Type that represents the component to get events for.
attributes
An array of type MemberAttribute that will be used as a filter.

Return Value

An EventDescriptorCollection with the events that match the specified attributes for this component.

Remarks

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

The attributes array can have a mix of Type and MemberAttribute objects. Filtering is defined by the following rules:

See Also

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