This documentation is archived and is not being maintained.

PackageDigitalSignatureManager.VerifyCertificate Method

Verifies a given X.509 certificate.

Namespace:  System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

[SecurityPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public static X509ChainStatusFlags VerifyCertificate(
	X509Certificate certificate


Type: System.Security.Cryptography.X509Certificates.X509Certificate
The X.509 certificate to verify.

Return Value

Type: System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
X509ChainStatusFlags.NoError (value 0) if the certificate verified successfully; otherwise, a bitwise enumeration of error flags.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.