DirectoryAttribute Constructor (String, Object[])

The DirectoryAttribute constructor creates an instance of the DirectoryAttribute class using the specified attribute name and values.

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

public DirectoryAttribute(
	string name,
	params Object[] values
)

Parameters

name
Type: System.String

The attribute name.

values
Type: System.Object[]

An array of values for the attribute.

ExceptionCondition
ArgumentNullException

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

ArgumentException

An element of values is not of type string, byte[], or Uri.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft