LdapConnection クラス

定義

LdapConnection クラスは、Microsoft Active Directory ドメイン サービスまたは LDAP サーバーへの TCP/IP または UDP の LDAP 接続を作成します。

public ref class LdapConnection : System::DirectoryServices::Protocols::DirectoryConnection, IDisposable
public class LdapConnection : System.DirectoryServices.Protocols.DirectoryConnection, IDisposable
type LdapConnection = class
    inherit DirectoryConnection
    interface IDisposable
Public Class LdapConnection
Inherits DirectoryConnection
Implements IDisposable
継承
LdapConnection
実装

注釈

オブジェクトのClientCertificatesプロパティとQueryClientCertificateオブジェクトのLdapConnectionプロパティの両方がLdapSessionOptions設定されている場合、プロパティでClientCertificates指定された証明書は無視されます。

コンストラクター

LdapConnection(LdapDirectoryIdentifier)

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

LdapConnection(LdapDirectoryIdentifier, NetworkCredential)

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

LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType)

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

LdapConnection(String)

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

プロパティ

AuthType

AuthType プロパティは、サポートされる認証の種類を格納します。

AutoBind

AutoBind プロパティは、自動バインドが許可されるかどうかを指定します。

ClientCertificates

認証用に送信する 1 つ以上のクライアント証明書を取得します。

(継承元 DirectoryConnection)
Credential

Credential プロパティは、オブジェクトのネットワーク資格情報を格納します。

Directory

接続するドメインまたはサーバーを取得します。

(継承元 DirectoryConnection)
SessionOptions

SessionOptions プロパティは、セッション オプションを指定する LdapSessionOptions オブジェクトを格納します。

Timeout

Timeout プロパティは、LdapConnection がタイムアウトするまでの時間の長さ (秒) を格納します。

メソッド

Abort(IAsyncResult)

Abort(IAsyncResult) メソッドは、非同期の要求をキャンセルします。

BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object)

サーバーにデータを非同期的に送信します。

BeginSendRequest(DirectoryRequest, TimeSpan, PartialResultProcessing, AsyncCallback, Object)

サーバーにデータを非同期的に送信します。

Bind()

Bind() メソッドは、現在の資格情報を使用して LDAP バインドを送信します。

Bind(NetworkCredential)

Bind(NetworkCredential) メソッドは、指定した NetworkCredential を使用して LDAP バインドを送信します。

Dispose()

Dispose() メソッドは、LDAP ハンドルを閉じたり、解放したりします。

Dispose(Boolean)

Dispose(Boolean) メソッドは、接続を閉じ、オプションで LDAP ハンドルを解放します。

EndSendRequest(IAsyncResult)

EndSendRequest(IAsyncResult) メソッドは、非同期の要求を完了します。

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
Finalize()

Finalize() メソッドは、LdapConnection オブジェクトがガベージ コレクションにより収集される前に、LdapConnection オブジェクトがリソースを解放し、その他のクリーンアップ操作を実行できるようにします。

GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetPartialResults(IAsyncResult)

GetPartialResults(IAsyncResult) メソッドは、非同期操作の部分的な結果を取得します。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
SendRequest(DirectoryRequest)

SendRequest(DirectoryRequest) メソッドは、LDAP v3 の操作として、単一の DirectoryRequest を送信します。

SendRequest(DirectoryRequest, TimeSpan)

SendRequest(DirectoryRequest, TimeSpan) メソッドは、LDAP v3 の操作として、単一の DirectoryRequest を送信します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象