System.ComponentModel.EventDescriptorCollection.Count Property

Gets the number of event descriptors in the collection.

Syntax

public int Count { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The EventDescriptorCollection.Count property can be used to set the limits of a loop that iterates through a collection of objects. If the collection is zero-based, be sure to use Count - 1 as the upper boundary of the loop.

Note:

The System.Security.Permissions.HostProtectionAttribute attribute applied to this class has the following System.Security.Permissions.HostProtectionAttribute.Resources property value: System.Security.Permissions.HostProtectionResource.Synchronization. The System.Security.Permissions.HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the System.Security.Permissions.HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

Requirements

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