NotifyOfNewConnectionCallback Delegar

Definição

O delegado NotifyOfNewConnectionCallback será chamado se uma nova conexão tiver sido criada durante a busca de uma referência.

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 

Parâmetros

primaryConnection
LdapConnection

Um objeto LdapConnection que especifica a conexão primária.

referralFromConnection
LdapConnection

Um objeto LdapConnection que especifica a conexão que forneceu a referência.

newDistinguishedName
String

Um objeto String que especifica o nome diferenciado da entrada desejada no servidor indicado.

identifier
LdapDirectoryIdentifier

Um objeto LdapDirectoryIdentifier que especifica o identificador do diretório LDAP referenciado.

newConnection
LdapConnection

Um objeto LdapConnection que especifica a nova conexão criada no decorrer da busca de uma referência.

credential
NetworkCredential

Um objeto NetworkCredential que especifica as credenciais a serem passadas ao servidor indicado.

currentUserToken
Int64

O LUID do usuário atual.

errorCodeFromBind
Int32

Um objeto Int32 que especifica o código de erro da operação de associação.

Valor Retornado

true se a conexão precisar ser armazenada em cache. false se não for necessário armazenar em cache a conexão.

Métodos de Extensão

GetMethodInfo(Delegate)

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

Aplica-se a