System.ComponentModel.EventDescriptorCollection Class

Represents a collection of System.ComponentModel.EventDescriptor objects.

See Also: EventDescriptorCollection Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class EventDescriptorCollection : IList

Remarks

System.ComponentModel.EventDescriptorCollection is read-only; it does not implement methods that add or remove events. You must inherit from this class to implement these methods.

Using the properties available in the System.ComponentModel.EventDescriptorCollection class, you can query the collection about its contents. Use the EventDescriptorCollection.Count property to determine the number of elements in the collection. Use the EventDescriptorCollection.Item(int) property to get a specific property by index number or by name.

You can also use the EventDescriptorCollection.Find(string, bool) method to get a description of the event with the specified name from the collection.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0