NotifyOfNewConnectionCallback Délégué

Définition

Le NotifyOfNewConnectionCallback délégué est appelé si une nouvelle connexion a été créée lors de la recherche d’une référence.

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 

Paramètres

primaryConnection
LdapConnection

Objet LdapConnection qui spécifie la connexion principale.

referralFromConnection
LdapConnection

Objet LdapConnection qui spécifie la connexion qui a fourni la référence.

newDistinguishedName
String

Objet String qui spécifie le nom unique de l’entrée souhaitée dans le serveur référencé.

identifier
LdapDirectoryIdentifier

Objet LdapDirectoryIdentifier qui spécifie l’identificateur du répertoire LDAP référencé.

newConnection
LdapConnection

Objet LdapConnection qui spécifie la nouvelle connexion créée au cours de la recherche d’une référence.

credential
NetworkCredential

Objet NetworkCredential qui spécifie les informations d’identification à transmettre au serveur référencé.

currentUserToken
Int64

LUID de l’utilisateur actuel.

errorCodeFromBind
Int32

Objet Int32 qui spécifie le code d’erreur de l’opération de liaison.

Valeur renvoyée

true si la connexion doit être mise en cache. false s’il n’est pas nécessaire de mettre en cache la connexion.

Méthodes d’extension

Nom Description
GetMethodInfo(Delegate)

Obtient un objet qui représente la méthode représentée par le délégué spécifié.

S’applique à