Click or drag to resize
MimeKit

CryptographyContextRegister(FuncSecureMimeContext) Method

Registers a default SecureMimeContext factory.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public static void Register(
	Func<SecureMimeContext> factory
)

Parameters

factory  FuncSecureMimeContext
A factory that creates a new instance of SecureMimeContext.
Exceptions
ExceptionCondition
ArgumentNullExceptionfactory is null.
Remarks
Registers a factory that will return a new instance of the default SecureMimeContext.
See Also