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) |
获取指示指定委托表示的方法的对象。 |