Matches a certificate by either subject name or email.

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

Syntax

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

Parameters

cert
Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2
The certificate to test
name
Type: System..::..String
The subject name or email address to test

Return Value

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

See Also