Gets a certificate from the Windows certificate repository.

Namespace: Nehta.VendorLibrary.Common
Assembly: Nehta.VendorLibrary.Common (in Nehta.VendorLibrary.Common.dll) Version: 3.0.2.0 (1.0.0.0)

Syntax

C#
public static X509Certificate2 GetCertificate(
	string findValue,
	X509FindType findType
)
Visual Basic
Public Shared Function GetCertificate ( _
	findValue As String, _
	findType As X509FindType _
) As X509Certificate2
Visual C++
public:
static X509Certificate2^ GetCertificate(
	String^ findValue, 
	X509FindType findType
)

Parameters

findValue
Type: System..::..String
Find value.
findType
Type: System.Security.Cryptography.X509Certificates..::..X509FindType
Find type.

Return Value

Matching certificate.

See Also