DirectoryAttributeCollection.Insert Method (Int32, DirectoryAttribute)

 

The Insert method inserts the specified DirectoryAttribute object into the DirectoryAttributeCollection at the specified index.

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

public void Insert(
	int index,
	DirectoryAttribute value
)

Parameters

index
Type: System.Int32

The zero-based index point, in the collection, at which to insert the DirectoryAttribute object.

value
Type: System.DirectoryServices.Protocols.DirectoryAttribute

The DirectoryAttribute object to be inserted into the collection.

Exception Condition
ArgumentException

value is a null reference (Nothing in Visual Basic) or value specifies a modification operation other than Add.

ArgumentOutOfRangeException

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

.NET Framework
Available since 2.0
Return to top
Show: