Click or drag to resize
MimeKit

IMailSpoolGetMessageSizeAsync Method

Asynchronously get the size of the specified message, in bytes.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
Task<int> GetMessageSizeAsync(
	int index,
	CancellationToken cancellationToken = default
)

Parameters

index  Int32
The index of the message.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskInt32
The message size, in bytes.
Remarks
Asynchronously gets the size of the specified message, in bytes.
See Also