QueryForConnectionCallback Делегат
Определение
Делегат QueryForConnectionCallback определяет, доступно ли для использования кэшированное соединение.The QueryForConnectionCallback delegate determines whether there is a cached connection available for use.
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, задающий первичное соединение.A LdapConnection object that specifies the primary connection.
- referralFromConnection
- LdapConnection
Объект LdapConnection, задающий соединение, которое предоставляет отсылку.A LdapConnection object that specifies the connection that provides the referral.
- newDistinguishedName
- String
Объект String, задающий отличительное имя (DN) требуемого элемента на ссылаемом сервере.A String object that specifies the distinguished name (DN) of the desired entry in the referred server.
- identifier
- LdapDirectoryIdentifier
Объект LdapDirectoryIdentifier, задающий идентификатор ссылаемого каталога LDAP.A LdapDirectoryIdentifier object that specifies the identifier for the referred LDAP directory.
- credential
- NetworkCredential
Объект NetworkCredential, задающий учетные данные для передачи на ссылаемый сервер.A NetworkCredential object that specifies the credentials to pass to the referred server.
- currentUserToken
- Int64
LUID текущего пользователя.The LUID for the current user.
Возвращаемое значение
Возвращается кэшированное LdapConnection, если таковое доступно.A cached LdapConnection is returned, if there is one available. Если кэшированное соединение недоступно, возвращается значение NULL
.If no cached connection is available, NULL
is returned.
- Наследование
Методы расширения
GetMethodInfo(Delegate) |
Получает объект, представляющий метод, представленный указанным делегатом.Gets an object that represents the method represented by the specified delegate. |