PackageDigitalSignature.Verify 方法

定義

根據 X.509 憑證驗證數位簽章。

多載

Verify()

根據 X.509 憑證驗證數位簽章。

Verify(X509Certificate)

根據指定的 X.509 憑證驗證數位簽章。

Verify()

根據 X.509 憑證驗證數位簽章。

C#
public System.IO.Packaging.VerifyResult Verify ();

傳回

如果驗證成功,則為 Success,否則會是指出問題的其中一個 VerifyResult 值。

例外狀況

數位 Signature 已經刪除。

備註

這個方法會針對儲存在 中的 Package內嵌 X.509 憑證驗證簽章。

另請參閱

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

Verify(X509Certificate)

根據指定的 X.509 憑證驗證數位簽章。

C#
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public System.IO.Packaging.VerifyResult Verify (System.Security.Cryptography.X509Certificates.X509Certificate signingCertificate);
C#
public System.IO.Packaging.VerifyResult Verify (System.Security.Cryptography.X509Certificates.X509Certificate signingCertificate);

參數

signingCertificate
X509Certificate

用來驗證數位簽章之簽署者的 X.509 憑證。

傳回

如果驗證成功,則為 Success,否則會是指出問題的其中一個 VerifyResult 值。

屬性

例外狀況

數位 Signature 已經刪除。

另請參閱

適用於

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 3.0, 3.5, 4.0, 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9