Extracts the subject name (CN) value from this certificate.

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

Syntax

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

Parameters

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

Return Value

The CN value or null if not found

See Also