PackageDigitalSignatureManager.VerifyCertificate Method (X509Certificate)

 

Verifies a given X.509 certificate.

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

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

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.

.NET Framework
Available since 3.0
Return to top
Show: