QueryForConnectionCallback 委托

定义

QueryForConnectionCallback 委托确定是否有可供使用的缓存连接。

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 对象,它指定提供检索的连接。

newDistinguishedName
String

一个 String 对象,它指定检索服务器中所需项的识别名 (DN)。

identifier
LdapDirectoryIdentifier

一个 LdapDirectoryIdentifier 对象,它指定所检索的 LDAP 目录的标识符。

credential
NetworkCredential

一个 NetworkCredential 对象,它指定传递到检索服务器的凭据。

currentUserToken
Int64

当前用户的 LUID。

返回值

LdapConnection

如果有缓存的 LdapConnection 可用,则返回它。 如果没有可用的缓存连接,则返回 NULL

扩展方法

GetMethodInfo(Delegate)

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

适用于