Pop3ClientGetMessageCountAsync Method (Boolean, CancellationToken)

Gets the message count

Namespace:  Aspose.Email.Clients.Pop3
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<int> GetMessageCountAsync(
	bool closeTransaction,
	CancellationToken token
)

Parameters

closeTransaction
Type: SystemBoolean
Indicates if current transaction has to be closed, before the list is retrieved.
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: TaskInt32
Task object, with delegate for this operation
See Also