AddRequest 构造函数

定义

AddRequest() 构造函数创建 AddRequest 类的实例。

重载

AddRequest()

AddRequest() 构造函数创建 AddRequest 类的实例。

AddRequest(String, DirectoryAttribute[])

AddRequest(String, DirectoryAttribute[]) 构造函数使用指定的识别名和特性创建 AddRequest 类的实例。

AddRequest(String, String)

AddRequest(String, String) 构造函数使用指定的 distinguishedName 和对象类创建 AddRequest 类的实例。

AddRequest()

Source:
DirectoryRequest.cs
Source:
DirectoryRequest.cs
Source:
DirectoryRequest.cs

AddRequest() 构造函数创建 AddRequest 类的实例。

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

适用于

AddRequest(String, DirectoryAttribute[])

Source:
DirectoryRequest.cs
Source:
DirectoryRequest.cs
Source:
DirectoryRequest.cs

AddRequest(String, DirectoryAttribute[]) 构造函数使用指定的识别名和特性创建 AddRequest 类的实例。

public:
 AddRequest(System::String ^ distinguishedName, ... cli::array <System::DirectoryServices::Protocols::DirectoryAttribute ^> ^ attributes);
public AddRequest (string distinguishedName, params System.DirectoryServices.Protocols.DirectoryAttribute[] attributes);
new System.DirectoryServices.Protocols.AddRequest : string * System.DirectoryServices.Protocols.DirectoryAttribute[] -> System.DirectoryServices.Protocols.AddRequest
Public Sub New (distinguishedName As String, ParamArray attributes As DirectoryAttribute())

参数

distinguishedName
String

目录中新对象的 distinguishedName

attributes
DirectoryAttribute[]

对象的数组 DirectoryAttribute ,包含此对象的属性。 此参数可以为 null

适用于

AddRequest(String, String)

Source:
DirectoryRequest.cs
Source:
DirectoryRequest.cs
Source:
DirectoryRequest.cs

AddRequest(String, String) 构造函数使用指定的 distinguishedName 和对象类创建 AddRequest 类的实例。

public:
 AddRequest(System::String ^ distinguishedName, System::String ^ objectClass);
public AddRequest (string distinguishedName, string objectClass);
new System.DirectoryServices.Protocols.AddRequest : string * string -> System.DirectoryServices.Protocols.AddRequest
Public Sub New (distinguishedName As String, objectClass As String)

参数

distinguishedName
String

目录中新对象的 distinguishedName

objectClass
String

此对象的对象类。 如果此参数为 null,则引发异常。

例外

objectClass 参数包含 null 引用(在 Visual Basic 中为 Nothing)。

注解

参数中指定的 objectClass 值将添加到 Attributes 属性。 在调用此构造函数后,可以修改此值。

适用于