NotifyOfNewConnectionCallback Delegado

Definición

Se NotifyOfNewConnectionCallback llama al delegado si se creó una nueva conexión mientras se persigue una referencia.

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

Objeto LdapConnection que especifica la conexión principal.

referralFromConnection
LdapConnection

Objeto LdapConnection que especifica la conexión que proporcionó la referencia.

newDistinguishedName
String

Objeto String que especifica el nombre distintivo de la entrada deseada en el servidor al que se hace referencia.

identifier
LdapDirectoryIdentifier

Objeto LdapDirectoryIdentifier que especifica el identificador del directorio LDAP al que se hace referencia.

newConnection
LdapConnection

Objeto LdapConnection que especifica la nueva conexión creada en el transcurso de la búsqueda de una referencia.

credential
NetworkCredential

Objeto NetworkCredential que especifica las credenciales que se van a pasar al servidor al que se hace referencia.

currentUserToken
Int64

LUID del usuario actual.

errorCodeFromBind
Int32

Objeto Int32 que especifica el código de error de la operación de enlace.

Valor devuelto

true si la conexión se va a almacenar en caché. false si no es necesario almacenar en caché la conexión.

Métodos de extensión

Nombre Description
GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.

Se aplica a