ImapClientListMessagesAsync Method (String, Boolean, IEnumerableString) |
Gets the list of messages in the specified folder
Namespace:
Aspose.Email.Clients.Imap
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic Task<ImapMessageInfoCollection> ListMessagesAsync(
string folderName,
bool retrieveRecursively,
IEnumerable<string> messageExtraFields
)
Public Function ListMessagesAsync (
folderName As String,
retrieveRecursively As Boolean,
messageExtraFields As IEnumerable(Of String)
) As Task(Of ImapMessageInfoCollection)
public:
Task<ImapMessageInfoCollection^>^ ListMessagesAsync(
String^ folderName,
bool retrieveRecursively,
IEnumerable<String^>^ messageExtraFields
)
member ListMessagesAsync :
folderName : string *
retrieveRecursively : bool *
messageExtraFields : IEnumerable<string> -> Task<ImapMessageInfoCollection>
Parameters
- folderName
- Type: SystemString
Folder to retrieve messages. - retrieveRecursively
- Type: SystemBoolean
Indicates, if messages have to be retrieved recursively. - messageExtraFields
- Type: System.Collections.GenericIEnumerableString
List of extra parameters for a message wich will be requested.
Return Value
Type:
TaskImapMessageInfoCollectionTask object, with delegate for this operation
See Also