Default Secure Mime Context(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 password
)Parameters
- password String
- The password used for encrypting and decrypting the private keys.
Remarks
Allows the program to specify its own password for the default database.
Requires linking with Mono.Data.Sqlite.
Exceptions
| ArgumentNullException | password is . |
| NotImplementedException | Mono.Data.Sqlite is not available. |
| UnauthorizedAccessException | The user does not have access to read the database at the default location. |
| IOException | An error occurred reading the database at the default location. |