EventDescriptorCollection::Insert Method (Int32, EventDescriptor^)
.NET Framework (current version)
Inserts an EventDescriptor to the collection at a specified index.
Assembly: System (in System.dll)
Parameters
- index
-
Type:
System::Int32
The index within the collection in which to insert the value parameter.
- value
-
Type:
System.ComponentModel::EventDescriptor^
An EventDescriptor to insert into the collection.
| Exception | Condition |
|---|---|
| NotSupportedException | The collection is read-only. |
Note |
|---|
The HostProtectionAttribute attribute applied to this class has the following Resources property value: Synchronization. The 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 HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes. |
.NET Framework
Available since 1.1
Available since 1.1
Show:
