IEWSClient.ListMessages

ListMessages(string)

Lists the messages.

public ExchangeMessageInfoCollection ListMessages(string folder)
ParameterTypeDescription
folderStringThe folder.

Return Value

A ExchangeMessageInfoCollection

See Also


ListMessages(string, ExchangeListMessagesOptions)

Lists the messages.

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

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, int, ExchangeListMessagesOptions)

Lists the messages.

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

Return Value

A ExchangeMessageInfoCollection

See Also


ListMessages(string, string, bool)

List the messages in the specified folder

public ExchangeMessageInfoCollection ListMessages(string mailbox, string folder, bool recursive)
ParameterTypeDescription
mailboxStringThe mailbox that is used to initialize the folder id class.
folderStringA folder to search messages in
recursiveBooleanIndicates whether recursive listing or not

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder

See Also


ListMessages(string, string, MailQuery)

List the messages in the specified folder.

public ExchangeMessageInfoCollection ListMessages(string mailbox, string folder, MailQuery query)
ParameterTypeDescription
mailboxStringThe mailbox that is used to initialize the folder id class.
folderStringA folder to search messages in.
queryMailQueryMailQuery that represents message search criteria.

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder.

See Also


ListMessages(string, bool)

List the messages in the specified folder

public ExchangeMessageInfoCollection ListMessages(string folder, bool recursive)
ParameterTypeDescription
folderStringA folder to search messages in
recursiveBooleanIndicates whether recursive listing or not

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder

See Also


ListMessages(string, ExchangeListMessagesOptions, IEnumerable<PropertyDescriptor>)

List the messages in the specified folder

public ExchangeMessageInfoCollection ListMessages(string folder, 
    ExchangeListMessagesOptions options, IEnumerable<PropertyDescriptor> extendedProperties)
ParameterTypeDescription
folderStringA folder to search messages in
optionsExchangeListMessagesOptionsSpecifies the settings of listing
extendedPropertiesIEnumerable`1Extended properties of retrieved messages

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder

See Also


ListMessages(string, MailQuery)

List the messages in the specified folder.

public ExchangeMessageInfoCollection ListMessages(string folder, MailQuery query)
ParameterTypeDescription
folderStringA folder to search messages in.
queryMailQueryMailQuery that represents message search criteria.

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder.

See Also


ListMessages(string, MailQuery, bool)

List the messages in the specified folder.

public ExchangeMessageInfoCollection ListMessages(string folder, MailQuery query, bool recursive)
ParameterTypeDescription
folderStringA folder to search messages in.
queryMailQueryMailQuery that represents message search criteria.
recursiveBooleanIndicates whether recursive listing or not.

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder.

See Also


ListMessages(string, int, MailQuery, bool)

List the messages in the specified folder.

public ExchangeMessageInfoCollection ListMessages(string folder, int maxNumberOfMessages, 
    MailQuery query, bool recursive)
ParameterTypeDescription
folderStringA folder to search messages in.
maxNumberOfMessagesInt32Maximum number of messages.
queryMailQueryMailQuery that represents message search criteria.
recursiveBooleanIndicates whether recursive listing or not.

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder.

See Also


ListMessages(IEnumerable<string>)

List the messages in the specified folder.

public ExchangeMessageInfoCollection ListMessages(IEnumerable<string> iDs)
ParameterTypeDescription
iDsIEnumerable`1Enumeration of message ids

Return Value

ExchangeMessageInfoCollection that contains messages with.

See Also


ListMessages()

List the messages in the inbox folder.

public ExchangeMessageInfoCollection ListMessages()

Return Value

ExchangeMessageInfoCollection from inbox folder.

See Also


ListMessages(string, int, MailQuery)

List the messages in the specified folder.

public ExchangeMessageInfoCollection ListMessages(string folder, int maxNumberOfMessages, 
    MailQuery query)
ParameterTypeDescription
folderStringA folder to search messages in.
maxNumberOfMessagesInt32Maximum number of messages.
queryMailQueryMailQuery that represents message search criteria.

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder.

See Also