Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft