Bearbeiten

Freigeben über


AddRequest Constructors

Definition

The AddRequest() constructor creates an instance of the AddRequest class.

Overloads

AddRequest()

The AddRequest() constructor creates an instance of the AddRequest class.

AddRequest(String, DirectoryAttribute[])

The AddRequest(String, DirectoryAttribute[]) constructor creates an instance of the AddRequest class using the specified distinguished name and attributes.

AddRequest(String, String)

The AddRequest(String, String) constructor creates an instance of the AddRequest class using the specified distinguishedName and the object class.

AddRequest()

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

The AddRequest() constructor creates an instance of the AddRequest class.

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

Applies to

AddRequest(String, DirectoryAttribute[])

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

The AddRequest(String, DirectoryAttribute[]) constructor creates an instance of the AddRequest class using the specified distinguished name and attributes.

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())

Parameters

distinguishedName
String

The distinguishedName of the new object in the directory.

attributes
DirectoryAttribute[]

An array, of DirectoryAttribute objects, that contains the attributes for this object. This parameter may be null.

Applies to

AddRequest(String, String)

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

The AddRequest(String, String) constructor creates an instance of the AddRequest class using the specified distinguishedName and the object class.

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)

Parameters

distinguishedName
String

The distinguishedName of the new object in the directory.

objectClass
String

The object class for this object. If this parameter is null, an exception is thrown.

Exceptions

The objectClass parameter contains a null reference (Nothing in Visual Basic).

Remarks

The value specified in the objectClass parameter is added to the Attributes property. This value can be modified after this constructor is called.

Applies to