QueryForConnectionCallback QueryForConnectionCallback QueryForConnectionCallback QueryForConnectionCallback Delegate

Definición

El delegado QueryForConnectionCallback determina si hay una conexión almacenada en memoria caché disponible para su uso.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 

Parámetros

primaryConnection
LdapConnection LdapConnection LdapConnection LdapConnection

Objeto LdapConnection que especifica la conexión principal.A LdapConnection object that specifies the primary connection.

referralFromConnection
LdapConnection LdapConnection LdapConnection LdapConnection

Objeto LdapConnection que especifica la conexión que proporciona la referencia.A LdapConnection object that specifies the connection that provides the referral.

newDistinguishedName
String String String String

Objeto String que especifica el nombre distintivo (DN) de la entrada deseada en el servidor al que se hace referencia.A String object that specifies the distinguished name (DN) of the desired entry in the referred server.

identifier
LdapDirectoryIdentifier LdapDirectoryIdentifier LdapDirectoryIdentifier LdapDirectoryIdentifier

Objeto LdapDirectoryIdentifier que especifica el identificador para el directorio LDAP al que se hace referencia.A LdapDirectoryIdentifier object that specifies the identifier for the referred LDAP directory.

credential
NetworkCredential NetworkCredential NetworkCredential NetworkCredential

Objeto NetworkCredential que especifica las credenciales que se pasan al servidor al que se hace referencia.A NetworkCredential object that specifies the credentials to pass to the referred server.

currentUserToken
Int64 Int64 Int64 Int64

LUID para el usuario actual.The LUID for the current user.

Valor devuelto

System.DirectoryServices.Protocols.LdapConnection

Se devuelve LdapConnection almacenado en memoria caché, si hay alguno disponible.A cached LdapConnection is returned, if there is one available. Si no hay disponible ninguna conexión almacenada en memoria caché, se devuelve NULL.If no cached connection is available, NULL is returned.

Herencia
QueryForConnectionCallbackQueryForConnectionCallbackQueryForConnectionCallbackQueryForConnectionCallback

Métodos de extensión

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.Gets an object that represents the method represented by the specified delegate.

Se aplica a