| IMailSpoolGetMessageCountAsync Method |
Asynchronously get the message count.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax Task<int> GetMessageCountAsync(
CancellationToken cancellationToken = default
)
Parameters
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskInt32The message count.
Remarks
Asynchronously gets the message count.
See Also