DirectoryControlCollection.Insert(Int32, DirectoryControl) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
DirectoryControlCollection is read-only, or DirectoryControlCollection has a fixed size.