共用方式為


VerifyServerCertificateCallback 代理人

定義

VerifyServerCertificateCallback 委派 (Delegate) 可以取得或設定預設回呼函式,用於在建立 SSL 連接時驗證伺服器憑證。

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 物件。

certificate
X509Certificate

指定伺服器憑證的 X509Certificate 物件。

傳回值

如果用戶端准許伺服器憑證,則為 true,否則為 false

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於