DirectoryAttribute 构造函数

定义

创建 DirectoryAttribute 类的实例。Creates an instance of the DirectoryAttribute class.

重载

DirectoryAttribute()

DirectoryAttribute() 构造函数创建 DirectoryAttribute 类的实例。The DirectoryAttribute() constructor creates an instance of the DirectoryAttribute class.

DirectoryAttribute(String, Byte[])

DirectoryAttribute(String, Byte[]) 构造函数使用指定的特性名和值创建 DirectoryAttribute 类的实例。The DirectoryAttribute(String, Byte[]) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

DirectoryAttribute(String, Object[])

DirectoryAttribute(String, Object[]) 构造函数使用指定的特性名和值创建 DirectoryAttribute 类的实例。The DirectoryAttribute(String, Object[]) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and values.

DirectoryAttribute(String, String)

DirectoryAttribute(String, String) 构造函数使用指定的特性名和值创建 DirectoryAttribute 类的实例。The DirectoryAttribute(String, String) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

DirectoryAttribute(String, Uri)

DirectoryAttribute(String, Uri) 构造函数使用指定的特性名和值创建 DirectoryAttribute 类的实例。The DirectoryAttribute(String, Uri) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

DirectoryAttribute()

DirectoryAttribute() 构造函数创建 DirectoryAttribute 类的实例。The DirectoryAttribute() constructor creates an instance of the DirectoryAttribute class.

public:
 DirectoryAttribute();
public DirectoryAttribute ();
Public Sub New ()

适用于

DirectoryAttribute(String, Byte[])

DirectoryAttribute(String, Byte[]) 构造函数使用指定的特性名和值创建 DirectoryAttribute 类的实例。The DirectoryAttribute(String, Byte[]) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

public:
 DirectoryAttribute(System::String ^ name, cli::array <System::Byte> ^ value);
public DirectoryAttribute (string name, byte[] value);
new System.DirectoryServices.Protocols.DirectoryAttribute : string * byte[] -> System.DirectoryServices.Protocols.DirectoryAttribute
Public Sub New (name As String, value As Byte())

参数

name
String

特性名称。The attribute name.

value
Byte[]

特性值。The attribute value.

例外

namevalue 包含空引用(在 Visual Basic 中为 Nothing)。name or value contains a null reference (Nothing in Visual Basic).

适用于

DirectoryAttribute(String, Object[])

DirectoryAttribute(String, Object[]) 构造函数使用指定的特性名和值创建 DirectoryAttribute 类的实例。The DirectoryAttribute(String, Object[]) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and values.

public:
 DirectoryAttribute(System::String ^ name, ... cli::array <System::Object ^> ^ values);
public DirectoryAttribute (string name, params object[] values);
new System.DirectoryServices.Protocols.DirectoryAttribute : string * obj[] -> System.DirectoryServices.Protocols.DirectoryAttribute
Public Sub New (name As String, ParamArray values As Object())

参数

name
String

特性名称。The attribute name.

values
Object[]

该特性的值组成的数组。An array of values for the attribute.

例外

namevalue 包含空引用(在 Visual Basic 中为 Nothing)。name or value contains a null reference (Nothing in Visual Basic).

values 的元素类型不是字符串、byte[] 或 Uri。An element of values is not of type string, byte[], or Uri.

适用于

DirectoryAttribute(String, String)

DirectoryAttribute(String, String) 构造函数使用指定的特性名和值创建 DirectoryAttribute 类的实例。The DirectoryAttribute(String, String) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

public:
 DirectoryAttribute(System::String ^ name, System::String ^ value);
public DirectoryAttribute (string name, string value);
new System.DirectoryServices.Protocols.DirectoryAttribute : string * string -> System.DirectoryServices.Protocols.DirectoryAttribute
Public Sub New (name As String, value As String)

参数

name
String

特性名称。The attribute name.

value
String

特性值。The attribute value.

例外

namevalue 包含空引用(在 Visual Basic 中为 Nothing)。name or value contains a null reference (Nothing in Visual Basic).

适用于

DirectoryAttribute(String, Uri)

DirectoryAttribute(String, Uri) 构造函数使用指定的特性名和值创建 DirectoryAttribute 类的实例。The DirectoryAttribute(String, Uri) constructor creates an instance of the DirectoryAttribute class using the specified attribute name and value.

public:
 DirectoryAttribute(System::String ^ name, Uri ^ value);
public DirectoryAttribute (string name, Uri value);
new System.DirectoryServices.Protocols.DirectoryAttribute : string * Uri -> System.DirectoryServices.Protocols.DirectoryAttribute
Public Sub New (name As String, value As Uri)

参数

name
String

特性名称。The attribute name.

value
Uri

特性值。The attribute value.

例外

namevalue 包含空引用(在 Visual Basic 中为 Nothing)。name or value contains a null reference (Nothing in Visual Basic).

适用于