IAsyncPop3Client.GetMessageCountAsync

IAsyncPop3Client.GetMessageCountAsync method

Gets the message count

public Task<int> GetMessageCountAsync(bool closeTransaction = false, IConnection connection = null, 
    CancellationToken token = default)
ParameterTypeDescription
connectionBooleanConnection to a server
closeTransactionIConnectionIndicates if current transaction has to be closed, before the list is retrieved.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

The message count

See Also