Uredi

Deli z drugimi prek


PackageDigitalSignature.Verify Method

Definition

Verifies the digital signature against an X.509 certificate.

Overloads

Verify()

Verifies the digital signature against an X.509 certificate.

Verify(X509Certificate)

Verifies the digital signature against a given X.509 certificate.

Verify()

Verifies the digital signature against an X.509 certificate.

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

Success if the verification succeeded; otherwise, one of the VerifyResult values that identifies a problem.

Exceptions

The digital Signature has been deleted.

Remarks

This method verifies the signature against an embedded X.509 certificate stored in the Package.

See also

Applies to

Verify(X509Certificate)

Verifies the digital signature against a given X.509 certificate.

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

Parameters

signingCertificate
X509Certificate

The signer's X.509 certificate to verify the digital signature against.

Returns

Success if the verification succeeded; otherwise, one of the VerifyResult values that identifies a problem.

Attributes

Exceptions

The digital Signature has been deleted.

See also

Applies to