XpsDigitalSignature.Verify Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies the document digital signature against an X.509 certificate.
Overloads
Verify() |
Verifies the document digital signature against the X.509 certificate embedded in the XPS Package. |
Verify(X509Certificate) |
Verifies the document digital signature against a specified X.509 certificate. |
Verify()
Verifies the document digital signature against the X.509 certificate embedded in the XPS Package.
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
Returns
One of the VerifyResult enumeration values that specify the result of the verification attempt.
Remarks
This overload method verifies the document digital signature against the X.509 certificate embedded by the SignDigitally method when called with the embedCertificate
parameter set to true
.
See also
Applies to
Verify(X509Certificate)
Verifies the document digital signature against a specified X.509 certificate.
public:
System::IO::Packaging::VerifyResult Verify(System::Security::Cryptography::X509Certificates::X509Certificate ^ certificate);
public System.IO.Packaging.VerifyResult Verify (System.Security.Cryptography.X509Certificates.X509Certificate certificate);
member this.Verify : System.Security.Cryptography.X509Certificates.X509Certificate -> System.IO.Packaging.VerifyResult
Public Function Verify (certificate As X509Certificate) As VerifyResult
Parameters
- certificate
- X509Certificate
The certificate of authenticity for the signer.
Returns
One of the VerifyResult enumeration values that specify the result of the verification attempt.
See also
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應