Click or drag to resize
MimeKit

CryptographyContextRegister(Type) Method

Registers a default SecureMimeContext or OpenPgpContext.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public static void Register(
	Type type
)

Parameters

type  Type
A custom subclass of SecureMimeContext or OpenPgpContext.
Exceptions
ExceptionCondition
ArgumentNullExceptiontype is null.
ArgumentException

type is not a subclass of SecureMimeContext or OpenPgpContext.

-or-

type does not have a parameterless constructor.

Remarks
Registers the specified type as the default SecureMimeContext or OpenPgpContext.
See Also