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如果同時設定物件上的 LdapConnection 屬性和 QueryClientCertificate 物件上的 LdapSessionOptions 屬性,則會忽略 屬性中指定的ClientCertificates憑證。

建構函式

LdapConnection(LdapDirectoryIdentifier)

LdapConnection(LdapDirectoryIdentifier) 建構函式使用指定的目錄識別項,建立 LdapConnection 類別的執行個體。 登入認證和交涉驗證 (Negotiate Authentication) 用於對 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

取得要傳送以進行驗證的一或多個客戶端憑證。

(繼承來源 DirectoryConnection)
Credential

Credential 屬性包含物件的網路認證。

Directory

取得應該建立連接的網域或伺服器。

(繼承來源 DirectoryConnection)
SessionOptions

SessionOptions 屬性包含指定工作階段 (Session) 選項的 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) 方法會將單一的 DirectoryRequest 當成 LDAP v3 作業傳送。

SendRequest(DirectoryRequest, TimeSpan)

SendRequest(DirectoryRequest, TimeSpan) 方法會將單一的 DirectoryRequest 當成 LDAP v3 作業傳送。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於