Mentalis.org Security Library documentation

CertificateStore Constructor (String)

Initializes a new CertificateStore from a given store name.

[Visual Basic]
Overloads Public Sub New( _
   ByVal store As String _
)
[C#]
public CertificateStore(
   string store
);

Parameters

store
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

Exception TypeCondition
ArgumentNullExceptionstore is a null reference (Nothing in Visual Basic).
CertificateExceptionAn error occurs while opening the specified store.

See Also

CertificateStore Class | CertificateStore Members | Org.Mentalis.Security.Certificates Namespace | CertificateStore Constructor Overload List