Click or drag to resize
MimeKit

ICryptographyContextDecrypt Method

Decrypt the specified encryptedData.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
MimeEntity Decrypt(
	Stream encryptedData,
	CancellationToken cancellationToken = default
)

Parameters

encryptedData  Stream
The encrypted data.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

MimeEntity
The decrypted MimeEntity.
Exceptions
ExceptionCondition
ArgumentNullExceptionencryptedData is .
OperationCanceledException The operation was cancelled via the cancellation token.
Remarks
Decrypts the specified encryptedData.
See Also