NotifyOfNewConnectionCallback Délégué

Définition

Le délégué NotifyOfNewConnectionCallback est appelé si une nouvelle connexion a été créée lors du repérage 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 auquel il est fait référence.

identifier
LdapDirectoryIdentifier

Objet LdapDirectoryIdentifier qui spécifie l'identificateur de l'annuaire LDAP auquel il est fait référence.

newConnection
LdapConnection

Objet LdapConnection qui spécifie la nouvelle connexion créée lors d'un repérage de référence.

credential
NetworkCredential

Objet NetworkCredential qui spécifie les informations d'identification à passer au serveur auquel il est fait référence.

currentUserToken
Int64

LUID de l'utilisateur en cours.

errorCodeFromBind
Int32

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

Valeur renvoyée

Boolean

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

Méthodes d’extension

GetMethodInfo(Delegate)

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

S’applique à