PropertyValueCollection.Insert Method (Int32, Object)

 

Inserts a property value into this collection at a specified index.

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

public void Insert(
	int index,
	object value
)

Parameters

index
Type: System.Int32

The zero-based index at which to insert the property value.

value
Type: System.Object

The property value to insert.

Exception Condition
ArgumentNullException

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

COMException

An error occurred during the call to the underlying interface.

IndexOutOfRangeException

The index is less than 0 (zero) or greater than the size of the collection.

.NET Framework
Available since 1.1
Return to top
Show: