Initializes a new CertificateStore from a given store name.

Namespace: LLCryptoLib.Security.Certificates
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public CertificateStore(
	string store
)
Visual Basic
Public Sub New ( _
	store As String _
)
Visual C++
public:
CertificateStore(
	String^ store
)

Parameters

store
Type: System..::..String
The name of the system store to open.

Remarks

If the system store name provided in this parameter is not the name of an existing system store, a new system store will be created and used.

Some example system stores are listed in the following table.

Predefined system store nameMeaning
"CA"Certification authority certificates.
"MY"A certificate store holding "My" certificates with their associated private keys.
"ROOT"Root certificates.
"SPC"Software publisher certificates.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionstore is a null reference (Nothing in Visual Basic).
LLCryptoLib.Security.Certificates..::..CertificateExceptionAn error occurs while opening the specified store.

See Also