LdapConnection コンストラクター

定義

LdapConnection クラスのインスタンスを作成します。

オーバーロード

LdapConnection(LdapDirectoryIdentifier)

LdapConnection(LdapDirectoryIdentifier) コンストラクターは、指定されたディレクトリ識別子を使用して、LdapConnection クラスのインスタンスを作成します。 ログオン資格情報とネゴシエート認証を使用して、LDAP サーバーに接続します。

LdapConnection(String)

LdapConnection(String) コンストラクターは、指定されたサーバーを使用して LdapConnection クラスのインスタンスを作成します。

LdapConnection(LdapDirectoryIdentifier, NetworkCredential)

LdapConnection(LdapDirectoryIdentifier, NetworkCredential) コンストラクターは、指定されたディレクトリ識別子とネットワーク資格情報を使用して、LdapConnection クラスのインスタンスを作成します。 ネゴシエート認証が使用されます。

LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType)

LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) コンストラクターは、指定したディレクトリ識別子、ネットワーク資格情報、および認証の種類を使用して、LdapConnection クラスのインスタンスを作成します。

LdapConnection(LdapDirectoryIdentifier)

ソース:
LdapConnection.cs
ソース:
LdapConnection.cs
ソース:
LdapConnection.cs

LdapConnection(LdapDirectoryIdentifier) コンストラクターは、指定されたディレクトリ識別子を使用して、LdapConnection クラスのインスタンスを作成します。 ログオン資格情報とネゴシエート認証を使用して、LDAP サーバーに接続します。

public:
 LdapConnection(System::DirectoryServices::Protocols::LdapDirectoryIdentifier ^ identifier);
public LdapConnection (System.DirectoryServices.Protocols.LdapDirectoryIdentifier identifier);
new System.DirectoryServices.Protocols.LdapConnection : System.DirectoryServices.Protocols.LdapDirectoryIdentifier -> System.DirectoryServices.Protocols.LdapConnection
Public Sub New (identifier As LdapDirectoryIdentifier)

パラメーター

identifier
LdapDirectoryIdentifier

サーバーを指定する LdapDirectoryIdentifier オブジェクト。

例外

接続ブロックの作成またはサーバーへの接続の開きに失敗しました。

適用対象

LdapConnection(String)

ソース:
LdapConnection.cs
ソース:
LdapConnection.cs
ソース:
LdapConnection.cs

LdapConnection(String) コンストラクターは、指定されたサーバーを使用して LdapConnection クラスのインスタンスを作成します。

public:
 LdapConnection(System::String ^ server);
public LdapConnection (string server);
new System.DirectoryServices.Protocols.LdapConnection : string -> System.DirectoryServices.Protocols.LdapConnection
Public Sub New (server As String)

パラメーター

server
String

ドメイン名、LDAP サーバー名、または LDAP サーバーの IP アドレスを表すドット区切りの文字列のいずれかに設定できる、サーバーを指定する文字列。 このパラメーターには、文字列の右端からコロン (:) で区切られた、ポート番号が含まれることもあります。

例外

接続ブロックの作成またはサーバーへの接続の開きに失敗しました。

適用対象

LdapConnection(LdapDirectoryIdentifier, NetworkCredential)

ソース:
LdapConnection.cs
ソース:
LdapConnection.cs
ソース:
LdapConnection.cs

LdapConnection(LdapDirectoryIdentifier, NetworkCredential) コンストラクターは、指定されたディレクトリ識別子とネットワーク資格情報を使用して、LdapConnection クラスのインスタンスを作成します。 ネゴシエート認証が使用されます。

public:
 LdapConnection(System::DirectoryServices::Protocols::LdapDirectoryIdentifier ^ identifier, System::Net::NetworkCredential ^ credential);
public LdapConnection (System.DirectoryServices.Protocols.LdapDirectoryIdentifier identifier, System.Net.NetworkCredential credential);
new System.DirectoryServices.Protocols.LdapConnection : System.DirectoryServices.Protocols.LdapDirectoryIdentifier * System.Net.NetworkCredential -> System.DirectoryServices.Protocols.LdapConnection
Public Sub New (identifier As LdapDirectoryIdentifier, credential As NetworkCredential)

パラメーター

identifier
LdapDirectoryIdentifier

サーバーを指定する LdapDirectoryIdentifier オブジェクト。

credential
NetworkCredential

使用する資格情報を指定する NetworkCredential オブジェクト。

例外

接続ブロックの作成またはサーバーへの接続の開きに失敗しました。

適用対象

LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType)

ソース:
LdapConnection.cs
ソース:
LdapConnection.cs
ソース:
LdapConnection.cs

LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) コンストラクターは、指定したディレクトリ識別子、ネットワーク資格情報、および認証の種類を使用して、LdapConnection クラスのインスタンスを作成します。

public:
 LdapConnection(System::DirectoryServices::Protocols::LdapDirectoryIdentifier ^ identifier, System::Net::NetworkCredential ^ credential, System::DirectoryServices::Protocols::AuthType authType);
public LdapConnection (System.DirectoryServices.Protocols.LdapDirectoryIdentifier identifier, System.Net.NetworkCredential credential, System.DirectoryServices.Protocols.AuthType authType);
new System.DirectoryServices.Protocols.LdapConnection : System.DirectoryServices.Protocols.LdapDirectoryIdentifier * System.Net.NetworkCredential * System.DirectoryServices.Protocols.AuthType -> System.DirectoryServices.Protocols.LdapConnection
Public Sub New (identifier As LdapDirectoryIdentifier, credential As NetworkCredential, authType As AuthType)

パラメーター

identifier
LdapDirectoryIdentifier

サーバーを指定する LdapDirectoryIdentifier オブジェクト。

credential
NetworkCredential

使用する資格情報を指定する NetworkCredential オブジェクト。

authType
AuthType

使用する認証の種類を指定する AuthType 値。

例外

接続ブロックの作成またはサーバーへの接続の開きに失敗しました。

authType が範囲外です。

authType は匿名として指定されていますが、 credential 指定された資格情報です。

適用対象