ImapClient.ListMessagesAsync
ListMessagesAsync(IConnection, string, long, bool, IEnumerable<string>)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, string folderName,
long modificationSequence, bool retrieveRecursively, IEnumerable<string> messageExtraFields)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
modificationSequence | Int64 | Modification sequence |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
messageExtraFields | IEnumerable`1 | List of extra parameters for a message wich will be requested. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection)
Gets the list of messages in the current folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, string)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, string folderName)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, bool)
Gets the list of messages in the current folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection,
bool retrieveRecursively)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, long)
Gets the list of messages in the current folder that have a modification sequence bigger than specified value. Please, see more https://tools.ietf.org/html/rfc7162
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection,
long modificationSequence)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
modificationSequence | Int64 | Modification sequence |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, string, bool)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, string folderName,
bool retrieveRecursively)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync()
Gets the list of messages in the current folder
public Task<ImapMessageInfoCollection> ListMessagesAsync()
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IEnumerable<string>)
Gets the list of messages in the current folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IEnumerable<string> messageExtraFields)
Parameter | Type | Description |
---|---|---|
messageExtraFields | IEnumerable`1 | List of extra parameters for a message wich will be requested. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(bool)
Gets the list of messages in the current folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(bool retrieveRecursively)
Parameter | Type | Description |
---|---|---|
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(string)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(string folderName)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(string, bool)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(string folderName,
bool retrieveRecursively)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(string, bool, IEnumerable<string>)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(string folderName,
bool retrieveRecursively, IEnumerable<string> messageExtraFields)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
messageExtraFields | IEnumerable`1 | List of extra parameters for a message wich will be requested. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(long)
Gets the list of messages in the current folder that have a modification sequence bigger than specified value. Please, see more https://tools.ietf.org/html/rfc7162
public Task<ImapMessageInfoCollection> ListMessagesAsync(long modificationSequence)
Parameter | Type | Description |
---|---|---|
modificationSequence | Int64 | Modification sequence |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, string, MailQuery, int)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, string folderName,
MailQuery query, int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Messages location |
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, MailQuery)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, MailQuery query)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
query | MailQuery | MailQuery that represents search query. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, MailQuery, int)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, MailQuery query,
int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(MailQuery)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(MailQuery query)
Parameter | Type | Description |
---|---|---|
query | MailQuery | MailQuery that represents search query. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(string, MailQuery, int)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(string folderName, MailQuery query,
int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
folderName | String | Messages location |
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(MailQuery, int)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(MailQuery query, int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, int)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection,
int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Task object, with delegate for this operation
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | maxNumberOfMessages is negative. |
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(int)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Task object, with delegate for this operation
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | maxNumberOfMessages is negative. |
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, string, long, bool, IEnumerable<string>, CancellationToken)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, string folderName,
long modificationSequence, bool retrieveRecursively, IEnumerable<string> messageExtraFields,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
modificationSequence | Int64 | Modification sequence |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
messageExtraFields | IEnumerable`1 | List of extra parameters for a message wich will be requested. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, CancellationToken)
Gets the list of messages in the current folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, string, CancellationToken)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, string folderName,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, bool, CancellationToken)
Gets the list of messages in the current folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection,
bool retrieveRecursively, CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, long, CancellationToken)
Gets the list of messages in the current folder that have a modification sequence bigger than specified value. Please, see more https://tools.ietf.org/html/rfc7162
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection,
long modificationSequence, CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
modificationSequence | Int64 | Modification sequence |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, string, bool, CancellationToken)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, string folderName,
bool retrieveRecursively, CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(CancellationToken)
Gets the list of messages in the current folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(CancellationToken token)
Parameter | Type | Description |
---|---|---|
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IEnumerable<string>, CancellationToken)
Gets the list of messages in the current folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(IEnumerable<string> messageExtraFields,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
messageExtraFields | IEnumerable`1 | List of extra parameters for a message wich will be requested. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(bool, CancellationToken)
Gets the list of messages in the current folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(bool retrieveRecursively,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(string, CancellationToken)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(string folderName, CancellationToken token)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(string, bool, CancellationToken)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(string folderName,
bool retrieveRecursively, CancellationToken token)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(string, bool, IEnumerable<string>, CancellationToken)
Gets the list of messages in the specified folder
public Task<ImapMessageInfoCollection> ListMessagesAsync(string folderName,
bool retrieveRecursively, IEnumerable<string> messageExtraFields, CancellationToken token)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
messageExtraFields | IEnumerable`1 | List of extra parameters for a message wich will be requested. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(long, CancellationToken)
Gets the list of messages in the current folder that have a modification sequence bigger than specified value. Please, see more https://tools.ietf.org/html/rfc7162
public Task<ImapMessageInfoCollection> ListMessagesAsync(long modificationSequence,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
modificationSequence | Int64 | Modification sequence |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, string, MailQuery, int, CancellationToken)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, string folderName,
MailQuery query, int maxNumberOfMessages, CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Messages location |
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, MailQuery, CancellationToken)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, MailQuery query,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
query | MailQuery | MailQuery that represents search query. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, MailQuery, int, CancellationToken)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection, MailQuery query,
int maxNumberOfMessages, CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(MailQuery, CancellationToken)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(MailQuery query, CancellationToken token)
Parameter | Type | Description |
---|---|---|
query | MailQuery | MailQuery that represents search query. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(string, MailQuery, int, CancellationToken)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(string folderName, MailQuery query,
int maxNumberOfMessages, CancellationToken token)
Parameter | Type | Description |
---|---|---|
folderName | String | Messages location |
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(MailQuery, int, CancellationToken)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(MailQuery query, int maxNumberOfMessages,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(IConnection, int, CancellationToken)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(IConnection connection,
int maxNumberOfMessages, CancellationToken token)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
maxNumberOfMessages | Int32 | Maximum number of messages. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | maxNumberOfMessages is negative. |
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessagesAsync(int, CancellationToken)
Gets the list of messages in the current folder.
public Task<ImapMessageInfoCollection> ListMessagesAsync(int maxNumberOfMessages,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
maxNumberOfMessages | Int32 | Maximum number of messages. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | maxNumberOfMessages is negative. |
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email