QueryForConnectionCallback Délégué

Définition

Le délégué QueryForConnectionCallback détermine si une connexion mise en cache est disponible.

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 

Paramètres

primaryConnection
LdapConnection

Objet LdapConnection qui spécifie la connexion principale.

referralFromConnection
LdapConnection

Objet LdapConnection qui spécifie la connexion qui fournit 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.

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.

Valeur renvoyée

Un LdapConnection mis en cache est retourné, s'il y en a un disponible. Si aucune connexion mise en cache n'est disponible, NULL est retourné.

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 à