共用方式為


HttpsConnectionAdapterOptions.ServerCertificate 屬性

定義

指定起始 HTTPs 連線時所呈現的伺服器憑證資訊。 如果已設定 ServerCertificateSelector,則會忽略此情況。

如果伺服器憑證具有擴充金鑰使用方式延伸模組,則使用方式必須包含伺服器驗證 (OID 1.3.6.1.5.5.7.3.1) 。

public:
 property System::Security::Cryptography::X509Certificates::X509Certificate2 ^ ServerCertificate { System::Security::Cryptography::X509Certificates::X509Certificate2 ^ get(); void set(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ value); };
public System.Security.Cryptography.X509Certificates.X509Certificate2 ServerCertificate { get; set; }
public System.Security.Cryptography.X509Certificates.X509Certificate2? ServerCertificate { get; set; }
member this.ServerCertificate : System.Security.Cryptography.X509Certificates.X509Certificate2 with get, set
Public Property ServerCertificate As X509Certificate2

屬性值

適用於