QueryForConnectionCallback Delegato

Definizione

Il QueryForConnectionCallback delegato determina se è disponibile una connessione memorizzata nella cache per l'uso.

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 

Parametri

primaryConnection
LdapConnection

Oggetto LdapConnection che specifica la connessione primaria.

referralFromConnection
LdapConnection

Oggetto LdapConnection che specifica la connessione che fornisce il riferimento.

newDistinguishedName
String

Oggetto String che specifica il nome distinto (DN) della voce desiderata nel server di riferimento.

identifier
LdapDirectoryIdentifier

Oggetto LdapDirectoryIdentifier che specifica l'identificatore per la directory LDAP di riferimento.

credential
NetworkCredential

Oggetto NetworkCredential che specifica le credenziali da passare al server di riferimento.

currentUserToken
Int64

LUID per l'utente corrente.

Valore restituito

Viene restituito un oggetto memorizzato LdapConnection nella cache, se disponibile. Se non è disponibile alcuna connessione memorizzata nella cache, NULL viene restituita.

Metodi di estensione

Nome Descrizione
GetMethodInfo(Delegate)

Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.

Si applica a