Extracts the "Key Usage" extension value

Namespace: NHINDirect.Certificates
Assembly: nhinCommon (in nhinCommon.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static X509KeyUsageExtension FindKeyUsageExtension(
	this X509Certificate2 cert
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function FindKeyUsageExtension ( _
	cert As X509Certificate2 _
) As X509KeyUsageExtension
Visual C++
[ExtensionAttribute]
public:
static X509KeyUsageExtension^ FindKeyUsageExtension(
	X509Certificate2^ cert
)

Parameters

cert
Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2
The certificate from which to extract the "Key Usage"

Return Value

The X509KeyUsageExtension for this certificate, or null if not found.

See Also