QueryForConnectionCallback Délégué
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Le QueryForConnectionCallback délégué détermine s’il existe une connexion mise en cache disponible pour une utilisation.
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 (DN) 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é.
- credential
- NetworkCredential
Objet NetworkCredential qui spécifie les informations d’identification à transmettre au serveur référencé.
- currentUserToken
- Int64
LUID de l’utilisateur actuel.
Valeur renvoyée
Un cache LdapConnection est retourné, s’il en existe un. Si aucune connexion mise en cache n’est disponible, NULL elle est retournée.
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é. |