EnumerateMessages

EnumerateMessages (1 of 6)

Exposes the enumerator, which supports an iteration of messages in storage.

Returns: System::Collections::Generic::IEnumerable , that represents an enumerator that iterates through a messages in storage.

EnumerateMessages()

EnumerateMessages (2 of 6)

Enumerates a specified number of mail messages, starting from the given index.

Returns: An enumerable collection of MailMessage instances starting from the specified index. The collection may be empty if there are no messages in the specified range.

EnumerateMessages(int32_t startIndex, int32_t count)
ParameterDescription
startIndexThe zero-based index of the first message to retrieve. If startIndex is greater than or equal to the total number of items, an ArgumentOutOfRangeException is thrown.
countThe maximum number of messages to retrieve. If set to -1, all messages from the start index will be read.

EnumerateMessages (3 of 6)

Exposes the enumerator, which supports an iteration of messages in storage.

Returns: System::Collections::Generic::IEnumerable , that represents an enumerator that iterates through a messages in storage.

EnumerateMessages(System::SharedPtr < EmlLoadOptions > options)
ParameterDescription
optionsSpecifies EmlLoadOptions when reading message from Mbox storage.

EnumerateMessages (4 of 6)

Enumerates a specified number of mail messages, starting from the given index, using the provided load options.

Returns: An enumerable collection of MailMessage instances starting from the specified index. The collection may be empty if there are no messages in the specified range.

EnumerateMessages(System::SharedPtr < EmlLoadOptions > options, int32_t startIndex, int32_t count)
ParameterDescription
optionsThe EmlLoadOptions specifying how EML files should be loaded.
startIndexThe zero-based index of the first message to retrieve. If startIndex is greater than or equal to the total number of items, an ArgumentOutOfRangeException is thrown.
countThe maximum number of messages to retrieve. If set to -1, all messages from the start index will be read.

EnumerateMessages (5 of 6)

Enumerates the mail messages that match the specified query, using the provided load options.

Returns: An enumerable collection of MailMessage instances that match the specified query. The collection may be empty if no messages match.

EnumerateMessages(System::SharedPtr < EmlLoadOptions > options, System::SharedPtr < Tools::Search::MailQuery > query)
ParameterDescription
optionsThe EmlLoadOptions specifying how EML should be read.
queryThe MailQuery used to filter messages.

EnumerateMessages (6 of 6)

Enumerates the mail messages that match the specified query.

Returns: An enumerable collection of MailMessage instances that match the specified query. The collection may be empty if no messages match.

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