Chilkat C# CreateCS Class Reference

CreateCS

Factory class for creating certificate store objects.

Properties

public string LastErrorHtml {get; }

Error information in HTML format for the last method called.

public string LastErrorText {get; }

Error information in plain-text format for the last method called.

public string LastErrorXml {get; }

Error information in XML format for the last method called.

public bool ReadOnly {get; set; }

Determines whether certificate stores are opened with read-only or read/write permissions. Only applies to methods such as OpenCurrentUserStore, where the a readOnly parameter is not present.

The default is True.

public string Version {get; }

The version of this component, such as "1.0"

Methods

public CertStore CreateFileStore(string filename);

Creates a file-based certificate store. If 'filename' already exists, the method will fail.

public CertStore CreateMemoryStore();

Creates a temporary certificate store in memory that is initially empty.

public CertStore CreateRegistryStore(string regRoot, string regPath);

Creates a registry-based certificate store. The 'hiveName' can either be "CurrentUser" or "LocalMachine". The 'regPath' argument should be specified without a leading slash, such as "Software/Chilkat/MyCertStore".

public CertStore OpenChilkatStore();

Opens the certificate store used by Chilkat Mail and returns the object representing that store.

public CertStore OpenCurrentUserStore();

Opens the local system's Current User Certificate Store and returns the object representing that store.

public CertStore OpenFileStore(string filename);

Opens an existing file certificate store. To open it read-only, readOnly should be non-zero.

public CertStore OpenLocalSystemStore();

Opens the local system's Local Machine Certificate Store and returns the object representing that store.

public CertStore OpenOutlookStore();

Opens the certificate store used by Microsoft Outlook (and Office) and returns the object representing that store.

public CertStore OpenRegistryStore(string regRoot, string regPath);

Opens an existing registry-based certificate store. 'hiveName' should be either "CurrentUser" or "LocalMachine". The 'regPath' argument should be specified without a leading slash, such as "Software/Chilkat/MyCertStore".

public bool SaveLastError(string filename);

Saves the last error information to an XML formatted file.