Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


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.

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

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

.NET Framework 4.8.1 és más verziók
Termék Verziók
.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, 10

Verify(X509Certificate)

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

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);

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

.NET Framework 4.8.1 és más verziók
Termék Verziók
.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, 10