Click or drag to resize
MimeKit

CryptographyContextCreate Method

Creates a new CryptographyContext for the specified protocol.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
public static CryptographyContext Create(
	string protocol
)

Parameters

protocol  String
The protocol.

Return Value

CryptographyContext
The CryptographyContext for the protocol.
Exceptions
ExceptionCondition
ArgumentNullExceptionprotocol is .
NotSupportedException There are no supported CryptographyContexts that support the specified protocol.
Remarks

Creates a new CryptographyContext for the specified protocol.

The default CryptographyContext types can over overridden by calling the Register(Type) method with the preferred type.

See Also