The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DirectoryAttributeCollection::Add Method (DirectoryAttribute^)
.NET Framework (current version)
The Add method adds a DirectoryAttribute object to the collection.
Assembly: System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)
Parameters
- attribute
-
Type:
System.DirectoryServices.Protocols::DirectoryAttribute^
The DirectoryAttribute object to add.
Return Value
Type: System::Int32The zero-based index in the collection where the DirectoryAttribute was added.
| Exception | Condition |
|---|---|
| ArgumentException | attribute is a null reference (Nothing in Visual Basic). |
.NET Framework
Available since 2.0
Available since 2.0
Show: