LdapDirectoryIdentifier 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 LdapDirectoryIdentifier 類別的執行個體。
多載
LdapDirectoryIdentifier(String)
LdapDirectoryIdentifier(String) 建構函式會使用指定的伺服器,建立 LdapDirectoryIdentifier 類別的執行個體。
public:
LdapDirectoryIdentifier(System::String ^ server);
public LdapDirectoryIdentifier (string server);
new System.DirectoryServices.Protocols.LdapDirectoryIdentifier : string -> System.DirectoryServices.Protocols.LdapDirectoryIdentifier
Public Sub New (server As String)
參數
- server
- String
伺服器識別碼。 指定伺服器的字串,可為網域名稱、LDAP 伺服器名稱,或是以小數點分隔代表 LDAP 伺服器 IP 位址的字串或 null
。 如果為 null
,則它代表與該電腦帳戶相關聯之網域中的任何網域控制站。
您也可以選擇性地在此參數中包含連接埠號碼,使用冒號 (:) 將它與識別碼本身分隔。
例外狀況
server
具有空格。
適用於
LdapDirectoryIdentifier(String, Int32)
LdapDirectoryIdentifier(String, Int32) 建構函式會使用指定的伺服器和屬性,以建立 LdapDirectoryIdentifier 類別的執行個體。 此建構函式會建立代表一組 LDAP 伺服器的識別項。
public:
LdapDirectoryIdentifier(System::String ^ server, int portNumber);
public LdapDirectoryIdentifier (string server, int portNumber);
new System.DirectoryServices.Protocols.LdapDirectoryIdentifier : string * int -> System.DirectoryServices.Protocols.LdapDirectoryIdentifier
Public Sub New (server As String, portNumber As Integer)
參數
- server
- String
伺服器識別碼。 指定伺服器的字串,可為網域名稱、LDAP 伺服器名稱,或是代表 LDAP 伺服器 IP 位址的小數點分隔字串。 您也可以選擇性地在此參數中包含連接埠號碼,使用冒號 (:) 將它與識別碼本身分隔。
- portNumber
- Int32
連線到伺服器時使用的連接埠號碼。
例外狀況
server
具有空格。
適用於
LdapDirectoryIdentifier(String, Boolean, Boolean)
LdapDirectoryIdentifier(String, Boolean, Boolean) 建構函式會使用指定的伺服器和屬性,以建立 LdapDirectoryIdentifier 類別的執行個體。 此建構函式會建立代表一組 LDAP 伺服器的識別項。
public:
LdapDirectoryIdentifier(System::String ^ server, bool fullyQualifiedDnsHostName, bool connectionless);
public LdapDirectoryIdentifier (string server, bool fullyQualifiedDnsHostName, bool connectionless);
new System.DirectoryServices.Protocols.LdapDirectoryIdentifier : string * bool * bool -> System.DirectoryServices.Protocols.LdapDirectoryIdentifier
Public Sub New (server As String, fullyQualifiedDnsHostName As Boolean, connectionless As Boolean)
參數
- server
- String
伺服器識別碼。 指定伺服器的字串,可為網域名稱、LDAP 伺服器名稱,或是代表 LDAP 伺服器 IP 位址的小數點分隔字串。 您也可以選擇性地在此參數中包含連接埠號碼,使用冒號 (:) 將它與識別碼本身分隔。
- fullyQualifiedDnsHostName
- Boolean
如果伺服器中的每個項目都是完整的 DNS 主機名稱,則為true
。 如果為 false
,則可能有項目是 IP 位址、DNS 網域或主機名稱,或是 null
。 如果為 null
,則它代表與該電腦帳戶相關聯之網域中的任何網域控制站。
- connectionless
- Boolean
如果連線為 UDP,則為 true
;如果連線使用 TCP/IP,則為 false
。
例外狀況
server
僅包含泛空白字元。
適用於
LdapDirectoryIdentifier(String[], Boolean, Boolean)
LdapDirectoryIdentifier(String, Boolean, Boolean) 建構函式會使用指定的伺服器和屬性,以建立 LdapDirectoryIdentifier 類別的執行個體。 此建構函式會建立代表一組 LDAP 伺服器的識別項。
public:
LdapDirectoryIdentifier(cli::array <System::String ^> ^ servers, bool fullyQualifiedDnsHostName, bool connectionless);
public LdapDirectoryIdentifier (string[] servers, bool fullyQualifiedDnsHostName, bool connectionless);
new System.DirectoryServices.Protocols.LdapDirectoryIdentifier : string[] * bool * bool -> System.DirectoryServices.Protocols.LdapDirectoryIdentifier
Public Sub New (servers As String(), fullyQualifiedDnsHostName As Boolean, connectionless As Boolean)
參數
- servers
- String[]
伺服器識別碼。 指定伺服器的字串,可為網域名稱、LDAP 伺服器名稱,或是代表 LDAP 伺服器 IP 位址的小數點分隔字串。 您也可以選擇性地在此參數中包含連接埠號碼,使用冒號 (:) 將它與識別碼本身分隔。
- fullyQualifiedDnsHostName
- Boolean
如果伺服器中的每個項目都是完整的 DNS 主機名稱,則為true
。 如果為 false
,則項目可以是 IP 位址、DNS 網域或主機名稱,或是 Null。 如果為 Null,則它代表與該電腦帳戶相關聯之網域中任何網域控制站的身分識別。
- connectionless
- Boolean
如果連線為 UDP,則為 true
;如果連線使用 TCP/IP,則為 false
。
例外狀況
server
具有空格。
適用於
LdapDirectoryIdentifier(String, Int32, Boolean, Boolean)
LdapDirectoryIdentifier(String, Int32, Boolean, Boolean) 建構函式會使用指定的伺服器和屬性,以建立 LdapDirectoryIdentifier 類別的執行個體。 此建構函式會建立代表一組 LDAP 伺服器的識別項。
public:
LdapDirectoryIdentifier(System::String ^ server, int portNumber, bool fullyQualifiedDnsHostName, bool connectionless);
public LdapDirectoryIdentifier (string server, int portNumber, bool fullyQualifiedDnsHostName, bool connectionless);
new System.DirectoryServices.Protocols.LdapDirectoryIdentifier : string * int * bool * bool -> System.DirectoryServices.Protocols.LdapDirectoryIdentifier
Public Sub New (server As String, portNumber As Integer, fullyQualifiedDnsHostName As Boolean, connectionless As Boolean)
參數
- server
- String
伺服器識別碼。 指定伺服器的字串,可為網域名稱、LDAP 伺服器名稱,或是代表 LDAP 伺服器 IP 位址的小數點分隔字串。 您也可以選擇性地在此參數中包含連接埠號碼,使用冒號 (:) 將它與識別碼本身分隔。
- portNumber
- Int32
連線到伺服器時使用的連接埠號碼。
- fullyQualifiedDnsHostName
- Boolean
如果伺服器中的每個項目都是完整的 DNS 主機名稱,則為true
。 如果為 false
,則項目可以是 IP 位址、DNS 網域或主機名稱,或是 Null。 如果為 Null,則它代表與該電腦帳戶相關聯之網域中任何網域控制站的身分識別。
- connectionless
- Boolean
如果連線為 UDP,則為 true
;如果連線使用 TCP/IP,則為 false
。
例外狀況
server
具有空格。
適用於
LdapDirectoryIdentifier(String[], Int32, Boolean, Boolean)
LdapDirectoryIdentifier(String[], Int32, Boolean, Boolean) 建構函式會使用指定的伺服器和屬性,以建立 LdapDirectoryIdentifier 類別的執行個體。 此建構函式會建立代表一組 LDAP 伺服器的識別項。
public:
LdapDirectoryIdentifier(cli::array <System::String ^> ^ servers, int portNumber, bool fullyQualifiedDnsHostName, bool connectionless);
public LdapDirectoryIdentifier (string[] servers, int portNumber, bool fullyQualifiedDnsHostName, bool connectionless);
new System.DirectoryServices.Protocols.LdapDirectoryIdentifier : string[] * int * bool * bool -> System.DirectoryServices.Protocols.LdapDirectoryIdentifier
Public Sub New (servers As String(), portNumber As Integer, fullyQualifiedDnsHostName As Boolean, connectionless As Boolean)
參數
- servers
- String[]
伺服器識別碼。 指定伺服器的字串,可為網域名稱、LDAP 伺服器名稱,或是代表 LDAP 伺服器 IP 位址的小數點分隔字串。 您也可以選擇性地在此參數中包含連接埠號碼,使用冒號 (:) 將它與識別碼本身分隔。
- portNumber
- Int32
連線到伺服器時使用的連接埠號碼。
- fullyQualifiedDnsHostName
- Boolean
如果伺服器中的每個項目都是完整的 DNS 主機名稱,則為true
。 如果為 false
,則項目可以是 IP 位址、DNS 網域或主機名稱,或是 Null。 如果為 Null,則它代表與該電腦帳戶相關聯之網域中任何網域控制站的身分識別。
- connectionless
- Boolean
如果連線為 UDP,則為 true
;如果連線使用 TCP/IP,則為 false
。
例外狀況
server
具有空格。