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!

EventDescriptorCollection Constructor

Initializes a new instance of the EventDescriptorCollection class.

[Visual Basic]
Public Sub New( _
   ByVal events() As EventDescriptor _
)
[C#]
public EventDescriptorCollection(
   EventDescriptor[] events
);
[C++]
public: EventDescriptorCollection(
   EventDescriptor* events[]
);
[JScript]
public function EventDescriptorCollection(
   events : EventDescriptor[]
);

Parameters

events
An array of type EventDescriptor that provides the events for this collection.

Remarks

If events is empty, this constructor creates an empty EventDescriptorCollection.

Example [Visual Basic]

The following example creates a new EventDescriptorCollection using the events on Button1. It assumes that Button1 has been instantiated on a form.

[Visual Basic]

Dim events As EventDescriptorCollection
events = TypeDescriptor.GetEvents(Button1)

See Also

EventDescriptorCollection Class | EventDescriptorCollection Members | System.ComponentModel Namespace | EventDescriptor | TypeDescriptor