DirectoryControlCollection::Add Method (DirectoryControl^)
.NET Framework (current version)
The Add method adds a new DirectoryControl object to the collection.
Assembly: System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)
Parameters
- control
-
Type:
System.DirectoryServices.Protocols::DirectoryControl^
The DirectoryControl object to add.
Return Value
Type: System::Int32The index of the DirectoryControlCollection at which the DirectoryControl object has been added.
| Exception | Condition |
|---|---|
| ArgumentNullException | control is a null reference (Nothing in Visual Basic). |
.NET Framework
Available since 2.0
Available since 2.0
Show: