ListMessages

ListMessages(string)

Lists the messages.

public ExchangeMessageInfoCollection ListMessages(string folder)
Parameter Type Description
folder String The folder.

Return Value

A ExchangeMessageInfoCollection

See Also


ListMessages(string, ExchangeListMessagesOptions)

Lists the messages.

public ExchangeMessageInfoCollection ListMessages(string folder, 
    ExchangeListMessagesOptions options)
Parameter Type Description
folder String The folder.
options ExchangeListMessagesOptions Specifies the settings of listing

Return Value

A ExchangeMessageInfoCollection

See Also


ListMessages(string, int)

Lists the messages.

public ExchangeMessageInfoCollection ListMessages(string folder, int maxNumberOfMessages)
Parameter Type Description
folder String The folder.
maxNumberOfMessages Int32 Maximum 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)
Parameter Type Description
folder String The folder.
maxNumberOfMessages Int32 Maximum number of messages
options ExchangeListMessagesOptions Specifies 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)
Parameter Type Description
mailbox String The mailbox that is used to initialize the folder id class.
folder String A folder to search messages in
recursive Boolean Indicates 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)
Parameter Type Description
mailbox String The mailbox that is used to initialize the folder id class.
folder String A folder to search messages in.
query MailQuery MailQuery 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)
Parameter Type Description
folder String A folder to search messages in
recursive Boolean Indicates 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)
Parameter Type Description
folder String A folder to search messages in
options ExchangeListMessagesOptions Specifies the settings of listing
extendedProperties IEnumerable`1 Extended 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)
Parameter Type Description
folder String A folder to search messages in.
query MailQuery MailQuery 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)
Parameter Type Description
folder String A folder to search messages in.
query MailQuery MailQuery that represents message search criteria.
recursive Boolean Indicates 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)
Parameter Type Description
folder String A folder to search messages in.
maxNumberOfMessages Int32 Maximum number of messages.
query MailQuery MailQuery that represents message search criteria.
recursive Boolean Indicates 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)
Parameter Type Description
iDs IEnumerable`1 Enumeration 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)
Parameter Type Description
folder String A folder to search messages in.
maxNumberOfMessages Int32 Maximum number of messages.
query MailQuery MailQuery that represents message search criteria.

Return Value

ExchangeMessageInfoCollection that contains messages from the specified folder.

See Also