共用方式為


WebRequestHandler.ServerCertificateValidationCallback 屬性

定義

取得或設定驗證伺服器憑證的回呼方法。

public:
 property System::Net::Security::RemoteCertificateValidationCallback ^ ServerCertificateValidationCallback { System::Net::Security::RemoteCertificateValidationCallback ^ get(); void set(System::Net::Security::RemoteCertificateValidationCallback ^ value); };
public System.Net.Security.RemoteCertificateValidationCallback ServerCertificateValidationCallback { get; set; }
member this.ServerCertificateValidationCallback : System.Net.Security.RemoteCertificateValidationCallback with get, set
Public Property ServerCertificateValidationCallback As RemoteCertificateValidationCallback

屬性值

驗證伺服器憑證的回呼方法。

備註

ServerCertificateValidationCallback如果 為null,則會使用標準已知證書頒發機構單位來驗證伺服器證書。

適用於