QueryForConnectionCallback Delegar

Definição

O QueryForConnectionCallback delegado determina se existe uma ligação 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 objeto que especifica LdapConnection a ligação primária.

referralFromConnection
LdapConnection

Um LdapConnection objeto que especifica a ligação que fornece a referência.

newDistinguishedName
String

Um String objeto que especifica o nome distinto (DN) da entrada desejada no servidor referido.

identifier
LdapDirectoryIdentifier

Um LdapDirectoryIdentifier objeto que especifica o identificador para o diretório LDAP referido.

credential
NetworkCredential

Um NetworkCredential objeto que especifica as credenciais a passar para o servidor referido.

currentUserToken
Int64

O LUID para o utilizador atual.

Devolver Valor

Um cache LdapConnection é devolvido, se houver um disponível. Se não houver ligação em cache disponível, NULL é devolvido.

Métodos da Extensão

Name Description
GetMethodInfo(Delegate)

Obtém um objeto que representa o método representado pelo delegado especificado.

Aplica-se a