Default Secure Mime Context(String, String) Constructor
Initialize a new instance of the DefaultSecureMimeContext 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 DefaultSecureMimeContext(
string fileName,
string password
)Parameters
Remarks
Allows the program to specify its own location for the SQLite database. If the file does not exist, it will be created and the necessary tables and indexes will be constructed.
Requires linking with Mono.Data.Sqlite.
Exceptions
| ArgumentNullException |
fileName is . -or- password is . |
| ArgumentException | The specified file path is empty. |
| NotSupportedException | Mono.Data.Sqlite is not available. |
| UnauthorizedAccessException | The user does not have access to read the specified file. |
| IOException | An error occurred reading the file. |