Click or drag to resize
MimeKit

IMailFolderGetMessage Method (UniqueId, CancellationToken, ITransferProgress)

Get the specified message.

Namespace:  MailKit
Assembly:  MailKit (in MailKit.dll) Version: 3.0.0
Syntax
C#
MimeMessage GetMessage(
	UniqueId uid,
	CancellationToken cancellationToken = default,
	ITransferProgress progress = null
)

Parameters

uid
Type: MailKitUniqueId
The UID of the message.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.
progress (Optional)
Type: MailKitITransferProgress
The progress reporting mechanism.

Return Value

Type: MimeMessage
The message.
Remarks
Gets the specified message.
See Also