MailKit Documentation
MailKit Documentation
API Reference
MimeKit.Cryptography
CryptographyContext Class
CryptographyContext Methods
Register Method
Register(Func<OpenPgpContext>) Method
Register(Func<SecureMimeContext>) Method
Register(Type) Method
Cryptography
Context
Register(Func
Open
Pgp
Context
) Method
Registers a default
OpenPgpContext
factory.
Namespace:
MimeKit.Cryptography
Assembly:
MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
Copy
public
static
void
Register
(
Func
<
OpenPgpContext
>
factory
)
Parameters
factory
Func
OpenPgpContext
A factory that creates a new instance of
OpenPgpContext
.
Exceptions
Exception
Condition
ArgumentNullException
factory
is
null
.
Remarks
Registers a factory that will return a new instance of the default
OpenPgpContext
.
See Also
Reference
CryptographyContext Class
Register Overload
MimeKit.Cryptography Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast