Bewerken

Share via


DirectoryControlCollection.Insert(Int32, DirectoryControl) Method

Definition

The Insert(Int32, DirectoryControl) method inserts the specified DirectoryControl object into the DirectoryControlCollection at the specified index.

public:
 void Insert(int index, System::DirectoryServices::Protocols::DirectoryControl ^ value);
public void Insert (int index, System.DirectoryServices.Protocols.DirectoryControl value);
member this.Insert : int * System.DirectoryServices.Protocols.DirectoryControl -> unit
Public Sub Insert (index As Integer, value As DirectoryControl)

Parameters

index
Int32

The index in the collection at which to insert the DirectoryControl object.

value
DirectoryControl

The DirectoryControl object to be inserted into the collection.

Exceptions

value is a null reference (Nothing in Visual Basic).

index is less than zero, or index is greater than the number of elements in the DirectoryControlCollection object.

Applies to