Sqlite Certificate Database(String, String) Constructor
Initialize a new instance of the SqliteCertificateDatabase class.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public SqliteCertificateDatabase(
string fileName,
string password
)Parameters
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.
Exceptions
| ArgumentNullException |
fileName is . -or- password is . |
| 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. |