VerifyCertificate Method
Collapse the table of content
Expand the table of content

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
)
You cannot use methods in XAML.

Parameters

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2016 Microsoft