LdapConnectionとは? わかりやすく解説

LdapConnection クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

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

名前空間: System.DirectoryServices.Protocols
アセンブリ: System.DirectoryServices.Protocols (system.directoryservices.protocols.dll 内)
構文構文

Public Class LdapConnection
    Inherits DirectoryConnection
    Implements IDisposable
Dim instance As LdapConnection
public class LdapConnection : DirectoryConnection,
 IDisposable
public ref class LdapConnection : public
 DirectoryConnection, IDisposable
public class LdapConnection extends DirectoryConnection
 implements IDisposable
public class LdapConnection extends
 DirectoryConnection implements IDisposable
解説解説

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

継承階層継承階層
System.Object
   System.DirectoryServices.Protocols.DirectoryConnection
    System.DirectoryServices.Protocols.LdapConnection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LdapConnection メンバ
System.DirectoryServices.Protocols 名前空間

LdapConnection コンストラクタ (LdapDirectoryIdentifier, NetworkCredential, AuthType)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

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

名前空間: System.DirectoryServices.Protocols
アセンブリ: System.DirectoryServices.Protocols (system.directoryservices.protocols.dll 内)
構文構文

Public Sub New ( _
    identifier As LdapDirectoryIdentifier, _
    credential As NetworkCredential, _
    authType As AuthType _
)
Dim identifier As LdapDirectoryIdentifier
Dim credential As NetworkCredential
Dim authType As AuthType

Dim instance As New LdapConnection(identifier,
 credential, authType)
public LdapConnection (
    LdapDirectoryIdentifier identifier,
    NetworkCredential credential,
    AuthType authType
)
public:
LdapConnection (
    LdapDirectoryIdentifier^ identifier, 
    NetworkCredential^ credential, 
    AuthType authType
)
public LdapConnection (
    LdapDirectoryIdentifier identifier, 
    NetworkCredential credential, 
    AuthType authType
)
public function LdapConnection (
    identifier : LdapDirectoryIdentifier, 
    credential : NetworkCredential, 
    authType : AuthType
)

パラメータ

identifier

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

credential

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

authType

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

例外例外
例外の種類条件

LdapException

接続ブロックを作成できない、またはサーバーとの接続を開くことができない場合にスローされます。

InvalidEnumArgumentException

authType が範囲外の場合にスローされます。

ArgumentException

authType が匿名と指定されているのに credential で資格情報が指定されている場合にスローされます。

.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LdapConnection クラス
LdapConnection メンバ
System.DirectoryServices.Protocols 名前空間

LdapConnection コンストラクタ (String)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

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

名前空間: System.DirectoryServices.Protocols
アセンブリ: System.DirectoryServices.Protocols (system.directoryservices.protocols.dll 内)
構文構文

例外例外
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LdapConnection クラス
LdapConnection メンバ
System.DirectoryServices.Protocols 名前空間

LdapConnection コンストラクタ (LdapDirectoryIdentifier, NetworkCredential)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

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

名前空間: System.DirectoryServices.Protocols
アセンブリ: System.DirectoryServices.Protocols (system.directoryservices.protocols.dll 内)
構文構文

Public Sub New ( _
    identifier As LdapDirectoryIdentifier, _
    credential As NetworkCredential _
)
Dim identifier As LdapDirectoryIdentifier
Dim credential As NetworkCredential

Dim instance As New LdapConnection(identifier,
 credential)
public LdapConnection (
    LdapDirectoryIdentifier identifier,
    NetworkCredential credential
)
public:
LdapConnection (
    LdapDirectoryIdentifier^ identifier, 
    NetworkCredential^ credential
)
public LdapConnection (
    LdapDirectoryIdentifier identifier, 
    NetworkCredential credential
)
public function LdapConnection (
    identifier : LdapDirectoryIdentifier, 
    credential : NetworkCredential
)

パラメータ

identifier

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

credential

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

例外例外
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LdapConnection クラス
LdapConnection メンバ
System.DirectoryServices.Protocols 名前空間

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 クラス
LdapConnection メンバ
System.DirectoryServices.Protocols 名前空間

LdapConnection コンストラクタ (LdapDirectoryIdentifier)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

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

名前空間: System.DirectoryServices.Protocols
アセンブリ: System.DirectoryServices.Protocols (system.directoryservices.protocols.dll 内)
構文構文

Public Sub New ( _
    identifier As LdapDirectoryIdentifier _
)
Dim identifier As LdapDirectoryIdentifier

Dim instance As New LdapConnection(identifier)
public LdapConnection (
    LdapDirectoryIdentifier identifier
)
public:
LdapConnection (
    LdapDirectoryIdentifier^ identifier
)
public LdapConnection (
    LdapDirectoryIdentifier identifier
)
public function LdapConnection (
    identifier : LdapDirectoryIdentifier
)

パラメータ

identifier

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

例外例外
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LdapConnection クラス
LdapConnection メンバ
System.DirectoryServices.Protocols 名前空間

LdapConnection プロパティ


LdapConnection メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Abort Abort メソッドは、非同期の要求をキャンセルします。
パブリック メソッド BeginSendRequest オーバーロードされます。 サーバーにデータを非同期的に送信します。
パブリック メソッド Bind オーバーロードされます。 LDAP バインドを送信します。
パブリック メソッド Dispose オーバーロードされます。 LDAP ハンドルを閉じ、オプションで解放もします。
パブリック メソッド EndSendRequest EndSendRequest メソッドは、非同期の要求を完了します。
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。)
パブリック メソッド GetPartialResults GetPartialResults メソッドは、非同期操作の部分的な結果を取得します。
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド SendRequest オーバーロードされます。 オーバーライドされます。 LDAP v3 の操作として、単一の DirectoryRequest を送信します。
パブリック メソッド ToString  現在の Object を表す String を返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

LdapConnection クラス
System.DirectoryServices.Protocols 名前空間

LdapConnection メンバ

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

LdapConnection データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド LdapConnection オーバーロードされます。 LdapConnection クラスのインスタンスを作成します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Abort Abort メソッドは、非同期の要求をキャンセルします。
パブリック メソッド BeginSendRequest オーバーロードされます。 サーバーにデータを非同期的に送信します。
パブリック メソッド Bind オーバーロードされます。 LDAP バインドを送信します。
パブリック メソッド Dispose オーバーロードされます。 LDAP ハンドルを閉じ、オプションで解放もします。
パブリック メソッド EndSendRequest EndSendRequest メソッドは、非同期の要求を完了します。
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。)
パブリック メソッド GetPartialResults GetPartialResults メソッドは、非同期操作の部分的な結果を取得します。
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド SendRequest オーバーロードされます。 オーバーライドされます。 LDAP v3 の操作として、単一の DirectoryRequest を送信します。
パブリック メソッド ToString  現在の Object を表す String を返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

LdapConnection クラス
System.DirectoryServices.Protocols 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「LdapConnection」の関連用語

LdapConnectionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



LdapConnectionのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS