QueryForConnectionCallback 代理人
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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 物件,指定提供轉介的連接。
- identifier
- LdapDirectoryIdentifier
LdapDirectoryIdentifier 物件,指定參考之 LDAP 目錄的識別項。
- credential
- NetworkCredential
NetworkCredential 物件,指定傳遞至參考之伺服器的認證。
- currentUserToken
- Int64
目前使用者的 LUID。
傳回值
如果存在可用的快取連接,則會傳回快取的 LdapConnection, 否則,傳回 NULL
。
擴充方法
GetMethodInfo(Delegate) |
取得表示特定委派所代表之方法的物件。 |