HttpsConnectionAdapterOptions.ServerCertificate 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定起始 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