Pop3ClientGetMessageCountAsync Method (Boolean, CancellationToken) |
Gets the message count
Namespace:
Aspose.Email.Clients.Pop3
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic Task<int> GetMessageCountAsync(
bool closeTransaction,
CancellationToken token
)
Public Function GetMessageCountAsync (
closeTransaction As Boolean,
token As CancellationToken
) As Task(Of Integer)
public:
Task<int>^ GetMessageCountAsync(
bool closeTransaction,
CancellationToken token
)
member GetMessageCountAsync :
closeTransaction : bool *
token : CancellationToken -> Task<int>
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:
TaskInt32Task object, with delegate for this operation
See Also