NotifyOfNewConnectionCallback Delegado

Definición

Se llama al delegado NotifyOfNewConnectionCallback si se crea una nueva conexión mientras se busca 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 durante la búsqueda de una referencia.

credential
NetworkCredential

Objeto NetworkCredential que especifica las credenciales que se pasan 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

Boolean

Es true si la conexión se debe almacenar en memoria caché. Es false si no es necesario almacenar la conexión en memoria caché.

Métodos de extensión

GetMethodInfo(Delegate)

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

Se aplica a