Loads certificates from a certifiate store matching the supplied subjectName

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

Syntax

C#
public static X509Certificate2 LoadCert(
	string subjectName,
	StoreLocation location
)
Visual Basic
Public Shared Function LoadCert ( _
	subjectName As String, _
	location As StoreLocation _
) As X509Certificate2
Visual C++
public:
static X509Certificate2^ LoadCert(
	String^ subjectName, 
	StoreLocation location
)

Parameters

subjectName
Type: System..::..String
The CN value to test
location
Type: System.Security.Cryptography.X509Certificates..::..StoreLocation
The store location

Return Value

The first matching certificate, or null if none match.

See Also