IEWSClientListMessages Method (String, String, Boolean)

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 mailbox,
	string folder,
	bool recursive
)

Parameters

mailbox
Type: SystemString
The mailbox that is used to initialize the folder id class.
folder
Type: SystemString
A folder to search messages in
recursive
Type: SystemBoolean
Indicates whether recursive listing or not

Return Value

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