QueryForConnectionCallback Delegar
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
O QueryForConnectionCallback delegado determina se há uma conexão armazenada em cache disponível para uso.
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
Parâmetros
- primaryConnection
- LdapConnection
Um LdapConnection objeto que especifica a conexão primária.
- referralFromConnection
- LdapConnection
Um LdapConnection objeto que especifica a conexão que fornece a indicação.
- newDistinguishedName
- String
Um String objeto que especifica o DN (nome diferenciado) da entrada desejada no servidor referenciado.
- identifier
- LdapDirectoryIdentifier
Um LdapDirectoryIdentifier objeto que especifica o identificador para o diretório LDAP referenciado.
- credential
- NetworkCredential
Um NetworkCredential objeto que especifica as credenciais a serem passadas para o servidor referenciado.
- currentUserToken
- Int64
O LUID para o usuário atual.
Valor Retornado
Um cache será LdapConnection retornado, se houver um disponível. Se nenhuma conexão armazenada em cache estiver disponível, NULL será retornada.
Métodos de Extensão
| Nome | Description |
|---|---|
| GetMethodInfo(Delegate) |
Obtém um objeto que representa o método representado pelo delegado especificado. |