PropertyValueCollection.Add Method (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Appends the specified PropertyValueCollection object to this collection.

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

public int Add(
	object value
)

Parameters

value
Type: System.Object

The PropertyValueCollection object to append to this collection.

Return Value

Type: System.Int32

The zero-based index of the PropertyValueCollection object that is appended to this collection.

Exception Condition
COMException

An error occurred during the call to the underlying interface.

ArgumentNullException

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

.NET Framework
Available since 1.1
Return to top
Show: