NotifyOfNewConnectionCallback 代理人
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果在追趕轉介時建立新的連接,則會呼叫 NotifyOfNewConnectionCallback 委派。
public delegate bool NotifyOfNewConnectionCallback(LdapConnection ^ primaryConnection, LdapConnection ^ referralFromConnection, System::String ^ newDistinguishedName, LdapDirectoryIdentifier ^ identifier, LdapConnection ^ newConnection, NetworkCredential ^ credential, long currentUserToken, int errorCodeFromBind);
public delegate bool NotifyOfNewConnectionCallback(LdapConnection primaryConnection, LdapConnection referralFromConnection, string newDistinguishedName, LdapDirectoryIdentifier identifier, LdapConnection newConnection, NetworkCredential credential, long currentUserToken, int errorCodeFromBind);
type NotifyOfNewConnectionCallback = delegate of LdapConnection * LdapConnection * string * LdapDirectoryIdentifier * LdapConnection * NetworkCredential * int64 * int -> bool
Public Delegate Function NotifyOfNewConnectionCallback(primaryConnection As LdapConnection, referralFromConnection As LdapConnection, newDistinguishedName As String, identifier As LdapDirectoryIdentifier, newConnection As LdapConnection, credential As NetworkCredential, currentUserToken As Long, errorCodeFromBind As Integer) As Boolean
參數
- primaryConnection
- LdapConnection
LdapConnection 物件,指定主要連接。
- referralFromConnection
- LdapConnection
LdapConnection 物件,指定可提供轉介的連接。
- identifier
- LdapDirectoryIdentifier
LdapDirectoryIdentifier 物件,指定參考之 LDAP 目錄的識別項。
- newConnection
- LdapConnection
LdapConnection 物件,指定在追趕轉介過程中建立的新連接。
- credential
- NetworkCredential
NetworkCredential 物件,指定傳遞至參考之伺服器的認證。
- currentUserToken
- Int64
目前使用者的 LUID。
傳回值
如果要快取連線,則為 true
。 如果不需要快取連線,則為 false
。
擴充方法
GetMethodInfo(Delegate) |
取得表示特定委派所代表之方法的物件。 |