Click or drag to resize
MimeKit

DefaultSecureMimeContext(String, String, SecureRandom) Constructor

Initialize a new instance of the DefaultSecureMimeContext class.

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

Parameters

fileName  String
The path to the SQLite database.
password  String
The password used for encrypting and decrypting the private keys.
random  SecureRandom
A secure pseudo-random number generator.
Exceptions
ExceptionCondition
ArgumentNullException

fileName is null.

-or-

password is null.

-or-

random is null.

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.
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.

See Also