Click or drag to resize
MimeKit

SqliteCertificateDatabase(String, String) Constructor

Initialize a new instance of the SqliteCertificateDatabase class.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public SqliteCertificateDatabase(
	string fileName,
	string password
)

Parameters

fileName  String
The file name.
password  String
The password used for encrypting and decrypting the private keys.
Exceptions
ExceptionCondition
ArgumentNullException

fileName is null.

-or-

password is null.

ArgumentException The specified file path is empty.
UnauthorizedAccessException The user does not have access to read the specified file.
IOException An error occurred reading the file.
Remarks

Creates a new SqliteCertificateDatabase and opens a connection to the SQLite database at the specified path using the Mono.Data.Sqlite binding to the native SQLite library.

If Mono.Data.Sqlite is not available or if an alternative binding to the native SQLite library is preferred, then consider using SqlCertificateDatabase(DbConnection, String) instead.

See Also