共用方式為


PackageDigitalSignature.Verify 方法

定義

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

多載

Verify()

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

Verify(X509Certificate)

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

Verify()

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

public:
 System::IO::Packaging::VerifyResult Verify();
public System.IO.Packaging.VerifyResult Verify ();
member this.Verify : unit -> System.IO.Packaging.VerifyResult
Public Function Verify () As VerifyResult

傳回

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

例外狀況

數位 Signature 已經刪除。

備註

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

另請參閱

適用於

Verify(X509Certificate)

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

public:
 System::IO::Packaging::VerifyResult Verify(System::Security::Cryptography::X509Certificates::X509Certificate ^ signingCertificate);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public System.IO.Packaging.VerifyResult Verify (System.Security.Cryptography.X509Certificates.X509Certificate signingCertificate);
public System.IO.Packaging.VerifyResult Verify (System.Security.Cryptography.X509Certificates.X509Certificate signingCertificate);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
member this.Verify : System.Security.Cryptography.X509Certificates.X509Certificate -> System.IO.Packaging.VerifyResult
member this.Verify : System.Security.Cryptography.X509Certificates.X509Certificate -> System.IO.Packaging.VerifyResult
Public Function Verify (signingCertificate As X509Certificate) As VerifyResult

參數

signingCertificate
X509Certificate

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

傳回

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

屬性

例外狀況

數位 Signature 已經刪除。

另請參閱

適用於