NotifyOfNewConnectionCallback Delegato

Definizione

Il delegato NotifyOfNewConnectionCallback viene chiamato se è stata creata una nuova connessione durante la ricerca di un riferimento.

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 

Parametri

primaryConnection
LdapConnection

Oggetto LdapConnection che specifica la connessione primaria.

referralFromConnection
LdapConnection

Oggetto LdapConnection che specifica la connessione che ha fornito il riferimento.

newDistinguishedName
String

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

identifier
LdapDirectoryIdentifier

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

newConnection
LdapConnection

Oggetto LdapConnection che specifica la nuova connessione creata durante la ricerca di un riferimento.

credential
NetworkCredential

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

currentUserToken
Int64

LUID dell'utente corrente.

errorCodeFromBind
Int32

Oggetto Int32 che specifica il codice di errore dall'operazione di associazione.

Valore restituito

true se la connessione deve essere memorizzata nella cache. false se non è necessario memorizzare la connessione nella cache.

Metodi di estensione

GetMethodInfo(Delegate)

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

Si applica a