EnumerateMessages

EnumerateMessages (1 of 4)

Retrieves MessageInfo objects from the folder.

Returns: An enumerable collection of all MessageInfo objects in the folder, excluding folder associated information (FAI) items.

EnumerateMessages()

EnumerateMessages (2 of 4)

Retrieves a collection of MessageInfo objects starting from a specific index and limited to a specified count.

Returns: An enumerable collection of MessageInfo objects starting at the specified index.

EnumerateMessages(int32_t startIndex, int32_t count)
ParameterDescription
startIndexThe zero-based index of the first message to retrieve.
countThe maximum number of messages to retrieve. If set to -1 , retrieves all messages starting from the specified startIndex .

EnumerateMessages (3 of 4)

Retrieves a collection of MessageInfo objects of the specified kind.

Returns: An enumerable collection of MessageInfo objects of the specified kind.

EnumerateMessages(MessageKind kind)
ParameterDescription
kindThe type of items to retrieve, such as normal messages or folder associated information items.

EnumerateMessages (4 of 4)

Retrieves a collection of MessageInfo objects that match the specified query.

Returns: An enumerable collection of MessageInfo objects matching the query.

EnumerateMessages(System::SharedPtr < Tools::Search::MailQuery > mailQuery)
ParameterDescription
mailQueryThe query criteria used to filter messages.