VerifyServerCertificateCallback VerifyServerCertificateCallback VerifyServerCertificateCallback VerifyServerCertificateCallback Delegate

Definición

El delegado VerifyServerCertificateCallback obtiene o establece la función de devolución de llamada predeterminada utilizada para comprobar los certificados de servidor cuando se realiza una conexión SSL.The VerifyServerCertificateCallback delegate gets or sets the default callback function used to verify server certificates when establishing an SSL connection.

public delegate bool VerifyServerCertificateCallback(LdapConnection ^ connection, X509Certificate ^ certificate);
public delegate bool VerifyServerCertificateCallback(LdapConnection connection, X509Certificate certificate);
type VerifyServerCertificateCallback = delegate of LdapConnection * X509Certificate -> bool
Public Delegate Function VerifyServerCertificateCallback(connection As LdapConnection, certificate As X509Certificate) As Boolean 

Parámetros

connection
LdapConnection LdapConnection LdapConnection LdapConnection

Objeto LdapConnection que especifica la conexión.A LdapConnection object that specifies the connection.

certificate
X509Certificate X509Certificate X509Certificate X509Certificate

Objeto X509Certificate que especifica el certificado de servidor.A X509Certificate object that specifies the server certificate.

Valor devuelto

System.Boolean

Es true si el cliente aprueba el certificado de servidor; de lo contrario, es false.true if the client approves the server certificate; otherwise false.

Herencia
VerifyServerCertificateCallbackVerifyServerCertificateCallbackVerifyServerCertificateCallbackVerifyServerCertificateCallback

Métodos de extensión

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.Gets an object that represents the method represented by the specified delegate.

Se aplica a