DirectoryControlCollection::Insert Method (Int32, DirectoryControl^)
.NET Framework (current version)
The Insert method inserts the specified DirectoryControl object into the DirectoryControlCollection at the specified index.
Assembly: System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)
Parameters
- index
-
Type:
System::Int32
The index in the collection at which to insert the DirectoryControl object.
- value
-
Type:
System.DirectoryServices.Protocols::DirectoryControl^
The DirectoryControl object to be inserted into the collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | value is a null reference (Nothing in Visual Basic). |
| ArgumentOutOfRangeException | index is less than zero, or index is greater than the number of elements in the DirectoryControlCollection object. |
| NotSupportedException | DirectoryControlCollection is read-only, or DirectoryControlCollection has a fixed size. |
.NET Framework
Available since 2.0
Available since 2.0
Show: