Click or drag to resize
MimeKit

IMailSpoolGetMessageSize Method

Get the size of the specified message, in bytes.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
int GetMessageSize(
	int index,
	CancellationToken cancellationToken = default
)

Parameters

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

Return Value

Int32
The message size, in bytes.
Remarks
Gets the size of the specified message, in bytes.
See Also