共用方式為


QueryForConnectionCallback 代理人

定義

QueryForConnectionCallback 委派 (Delegate) 可以判斷是否有可用的快取連接。

public delegate System::DirectoryServices::Protocols::LdapConnection ^ QueryForConnectionCallback(LdapConnection ^ primaryConnection, LdapConnection ^ referralFromConnection, System::String ^ newDistinguishedName, LdapDirectoryIdentifier ^ identifier, NetworkCredential ^ credential, long currentUserToken);
public delegate System.DirectoryServices.Protocols.LdapConnection QueryForConnectionCallback(LdapConnection primaryConnection, LdapConnection referralFromConnection, string newDistinguishedName, LdapDirectoryIdentifier identifier, NetworkCredential credential, long currentUserToken);
type QueryForConnectionCallback = delegate of LdapConnection * LdapConnection * string * LdapDirectoryIdentifier * NetworkCredential * int64 -> LdapConnection
Public Delegate Function QueryForConnectionCallback(primaryConnection As LdapConnection, referralFromConnection As LdapConnection, newDistinguishedName As String, identifier As LdapDirectoryIdentifier, credential As NetworkCredential, currentUserToken As Long) As LdapConnection 

參數

primaryConnection
LdapConnection

LdapConnection 物件,指定主要連接。

referralFromConnection
LdapConnection

LdapConnection 物件,指定提供轉介的連接。

newDistinguishedName
String

String 物件,指定參考之伺服器中所需項目的辨別名稱 (DN)。

identifier
LdapDirectoryIdentifier

LdapDirectoryIdentifier 物件,指定參考之 LDAP 目錄的識別項。

credential
NetworkCredential

NetworkCredential 物件,指定傳遞至參考之伺服器的認證。

currentUserToken
Int64

目前使用者的 LUID。

傳回值

如果存在可用的快取連接,則會傳回快取的 LdapConnection, 否則,傳回 NULL

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於