Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DirectoryAttribute.Insert Method (Int32, String)

The Insert method inserts the specified value into the DirectoryAttribute collection at the specified index.

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

public void Insert(
	int index,
	string value
)

Parameters

index
Type: System.Int32

The index in the DirectoryAttribute collection at which to insert the value.

value
Type: System.String

The value to insert.

ExceptionCondition
ArgumentNullException

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

ArgumentOutOfRangeException

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft