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

Gets a collection of events for a specified component using a specified array of attributes

as a filter.

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

Parameters

component
A component to get the events for.
attributes
An array of type MemberAttribute that will be used as a filter.
fNoCustomTypeDesc
true if TypeDescriptor has been called by an instance of ICustomTypeDescriptor; otherwise, false.

Return Value

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

Remarks

The events for a component can differ from the events of a class, because if the component is sited, the site can add or remove events.

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 | ICustomTypeDescriptor