Tests the supplied certificate against a CN value

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

Syntax

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

Parameters

cert
Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2
The certificate to test
name
Type: System..::..String
The CN value to test

Return Value

true if the certificate matches by subject name, false otherwise.

See Also