Click or drag to resize
MimeKit

IMailSpoolGetMessageCountAsync Method

Asynchronously get the message count.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
Task<int> GetMessageCountAsync(
	CancellationToken cancellationToken = default
)

Parameters

cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskInt32
The message count.
Remarks
Asynchronously gets the message count.
See Also