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)

获取指示指定委托表示的方法的对象。

适用于