Pop3Client.GetMessageCountAsync

GetMessageCountAsync(IConnection)

Gets the message count

public Task<int> GetMessageCountAsync(IConnection connection)
ParameterTypeDescription
connectionIConnectionConnection to a server

Return Value

Task object, with delegate for this operation

See Also


GetMessageCountAsync(IConnection, bool)

Gets the message count

public Task<int> GetMessageCountAsync(IConnection connection, bool closeTransaction)
ParameterTypeDescription
connectionIConnectionConnection to a server
closeTransactionBooleanIndicates if current transaction has to be closed, before the list is retrieved.

Return Value

Task object, with delegate for this operation

See Also


GetMessageCountAsync()

Gets the message count

public Task<int> GetMessageCountAsync()

Return Value

Task object, with delegate for this operation

See Also


GetMessageCountAsync(bool)

Gets the message count

public Task<int> GetMessageCountAsync(bool closeTransaction)
ParameterTypeDescription
closeTransactionBooleanIndicates if current transaction has to be closed, before the list is retrieved.

Return Value

Task object, with delegate for this operation

See Also


GetMessageCountAsync(IConnection, CancellationToken)

Gets the message count

public Task<int> GetMessageCountAsync(IConnection connection, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


GetMessageCountAsync(IConnection, bool, CancellationToken)

Gets the message count

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

Return Value

Task object, with delegate for this operation

See Also


GetMessageCountAsync(CancellationToken)

Gets the message count

public Task<int> GetMessageCountAsync(CancellationToken token)
ParameterTypeDescription
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


GetMessageCountAsync(bool, CancellationToken)

Gets the message count

public Task<int> GetMessageCountAsync(bool closeTransaction, CancellationToken token)
ParameterTypeDescription
closeTransactionBooleanIndicates if current transaction has to be closed, before the list is retrieved.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also