DirectoryControlCollection::Insert Method (Int32, DirectoryControl^)

 

The Insert method inserts the specified DirectoryControl object into the DirectoryControlCollection at the specified index.

Namespace:   System.DirectoryServices.Protocols
Assembly:  System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)

public:
void Insert(
	int index,
	DirectoryControl^ value
)

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
Return to top
Show: