DirectoryAttributeCollection.AddRange Method (DirectoryAttribute[])

 

The AddRange method adds an array of DirectoryAttribute objects to the collection.

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

public void AddRange(
	DirectoryAttribute[] attributes
)

Parameters

attributes
Type: System.DirectoryServices.Protocols.DirectoryAttribute[]

An array of DirectoryAttribute to add to the collection.

Exception Condition
ArgumentNullException

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

ArgumentException

A member of attributes is a null reference (Nothing in Visual Basic) or a member of attributes specifies a modification operation other than Add.

.NET Framework
Available since 2.0
Return to top
Show: