Click or drag to resize
MimeKit

CryptographyContextDecryptAsync Method

Asynchronously decrypt the specified encryptedData.

Namespace:  MimeKit.Cryptography
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
public abstract Task<MimeEntity> DecryptAsync(
	Stream encryptedData,
	CancellationToken cancellationToken = default
)

Parameters

encryptedData
Type: System.IOStream
The encrypted data.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskMimeEntity
The decrypted MimeEntity.
Exceptions
ExceptionCondition
ArgumentNullExceptionencryptedData is null.
OperationCanceledException The operation was cancelled via the cancellation token.
Remarks
Asynchronously decrypts the specified encryptedData.
See Also