Cryptography ContextRegister(FuncSecure Mime Context) Method
Registers a default SecureMimeContext factory.
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 static void Register(
Func<SecureMimeContext> factory
)Parameters
- factory FuncSecureMimeContext
- A factory that creates a new instance of SecureMimeContext.
Remarks
Registers a factory that will return a new instance of the default SecureMimeContext.
Exceptions
| ArgumentNullException | factory is . |