IEWSClientListMessages Method (String, MailQuery)

List the messages in the specified folder.

Namespace:  Aspose.Email.Clients.Exchange.WebService
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.10
Syntax
ExchangeMessageInfoCollection ListMessages(
	string folder,
	MailQuery query
)

Parameters

folder
Type: SystemString
A folder to search messages in.
query
Type: Aspose.Email.Tools.SearchMailQuery
MailQuery that represents message search criteria.

Return Value

Type: ExchangeMessageInfoCollection
ExchangeMessageInfoCollection that contains messages from the specified folder.
See Also