AddRequest Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應