DirectoryAttributeModificationCollection.Insert Method (Int32, DirectoryAttributeModification)

 

The Insert method inserts a DirectoryAttributeModification object into the DirectoryAttributeModificationCollection collection at the specified index.

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

public void Insert(
	int index,
	DirectoryAttributeModification value
)

Parameters

index
Type: System.Int32

The zero-based index in the collection at which to insert the DirectoryAttributeModification object.

value
Type: System.DirectoryServices.Protocols.DirectoryAttributeModification

The DirectoryAttributeModification object to insert.

Exception Condition
ArgumentException

value is a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

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

.NET Framework
Available since 2.0
Return to top
Show: