Add Method
Collapse the table of content
Expand the table of content

DirectoryAttributeCollection.Add Method (DirectoryAttribute)

 

The Add method adds a DirectoryAttribute object to the collection.

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

public int Add(
	DirectoryAttribute attribute
)

Return Value

Type: System.Int32

The 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
Return to top
Show:
© 2016 Microsoft