共用方式為


NotifyOfNewConnectionCallback 代理人

定義

如果在追趕轉介時建立新的連接,則會呼叫 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 物件,指定可提供轉介的連接。

newDistinguishedName
String

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

identifier
LdapDirectoryIdentifier

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

newConnection
LdapConnection

LdapConnection 物件,指定在追趕轉介過程中建立的新連接。

credential
NetworkCredential

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

currentUserToken
Int64

目前使用者的 LUID。

errorCodeFromBind
Int32

Int32 物件,指定來自繫結作業的錯誤碼。

傳回值

如果要快取連線,則為 true。 如果不需要快取連線,則為 false

擴充方法

GetMethodInfo(Delegate)

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

適用於