VerifyServerCertificateCallback 委托

定义

VerifyServerCertificateCallback 委托获取或设置默认回调函数,而该函数用于在建立 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 

参数

connection
LdapConnection

一个指定连接的 LdapConnection 对象。A LdapConnection object that specifies the connection.

certificate
X509Certificate

一个指定服务器证书的 X509Certificate 对象。A X509Certificate object that specifies the server certificate.

返回值

Boolean

如果客户端批准该服务器证书,则为 true;否则为 falsetrue if the client approves the server certificate; otherwise false.

继承
VerifyServerCertificateCallback

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于