ExchangeClient.ListMessages

ListMessages(string)

Lists the messages.

public ExchangeMessageInfoCollection ListMessages(string folder)
ParameterTypeDescription
folderStringThe folder.

Return Value

A ExchangeMessageInfoCollection

See Also


ListMessages(string, int)

Lists the messages.

public ExchangeMessageInfoCollection ListMessages(string folder, int maxNumberOfMessages)
ParameterTypeDescription
folderStringThe folder.
maxNumberOfMessagesInt32Maximum number of messages

Return Value

A ExchangeMessageInfoCollection

See Also


ListMessages(string, string, bool)

Lists the messages.

public ExchangeMessageInfoCollection ListMessages(string folder, string messageClass, 
    bool recursive)
ParameterTypeDescription
folderStringThe folder.
messageClassStringThe message class.
recursiveBooleanif set to true [recursive].

See Also


ListMessages(string, bool)

List the messages in the specified folder

public ExchangeMessageInfoCollection ListMessages(string folder, bool recursive)
ParameterTypeDescription
folderStringThe folder Uri
recursiveBooleanIndicates whether recursive listing or not.

Return Value

A collection of message info

See Also


ListMessages(string, string)

Lists the messages.

public ExchangeMessageInfoCollection ListMessages(string folder, string query)
ParameterTypeDescription
folderStringThe folder.
queryStringThe query.

See Also


ListMessages(string, MailQuery, bool)

Lists the messages.

public ExchangeMessageInfoCollection ListMessages(string folder, MailQuery query, bool recursive)
ParameterTypeDescription
folderStringThe Uri of folder that contains messages.
queryMailQueryThe MailQuery that represents search criteria.
recursiveBooleanIndicates whether recursive listing or not.

Return Value

The message info collection.

See Also


ListMessages(string, ExchangeListMessagesOptions)

Lists the mail message in the specified folder.

public ExchangeMessageInfoCollection ListMessages(string folder, 
    ExchangeListMessagesOptions options)
ParameterTypeDescription
folderStringThe folder url
optionsExchangeListMessagesOptionsSpecifies the settings of listing

Return Value

A ExchangeMessageInfoCollection collection.

See Also


ListMessages(string, int, ExchangeListMessagesOptions)

List the messages in the specified folder

public ExchangeMessageInfoCollection ListMessages(string folder, int maxNumberOfMessages, 
    ExchangeListMessagesOptions options)
ParameterTypeDescription
folderStringThe folder Uri
maxNumberOfMessagesInt32Maximum number of messages
optionsExchangeListMessagesOptionsSpecifies the settings of listing

Return Value

A collection of message info

See Also