MetadataSerializer.ValidateIssuer(X509Certificate2) 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
針對 TrustedIssuers 屬性指定的受信任簽發者清單,驗證簽署中繼資料文件的 X.509 憑證。 這個方法是由 ValidateSigningCredential(SigningCredentials) 方法叫用 (Invoke)。
protected:
virtual void ValidateIssuer(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ signingCertificate);
C#
protected virtual void ValidateIssuer (System.Security.Cryptography.X509Certificates.X509Certificate2 signingCertificate);
abstract member ValidateIssuer : System.Security.Cryptography.X509Certificates.X509Certificate2 -> unit
override this.ValidateIssuer : System.Security.Cryptography.X509Certificates.X509Certificate2 -> unit
Protected Overridable Sub ValidateIssuer (signingCertificate As X509Certificate2)
- signingCertificate
- X509Certificate2
簽署的憑證。
根據預設,這個方法不會執行任何驗證。 提供您自己的實作來執行受信任的簽發者驗證。
產品 | 版本 |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |