MboxStorageReader.EnumerateMessageInfo

EnumerateMessageInfo()

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

public IEnumerable<MboxMessageInfo> EnumerateMessageInfo()

Return Value

IEnumerable, that represents an enumerator that iterates through a messages in storage.

See Also


EnumerateMessageInfo(MailQuery)

Enumerates the message information that matches the specified query.

public IEnumerable<MboxMessageInfo> EnumerateMessageInfo(MailQuery query)
ParameterTypeDescription
queryMailQueryThe MailQuery used to filter messages.

Return Value

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

See Also


EnumerateMessageInfo(int, int)

Enumerates a specified number of message information entries, starting from the given index.

public IEnumerable<MboxMessageInfo> EnumerateMessageInfo(int startIndex, int count)
ParameterTypeDescription
startIndexInt32The 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.
countInt32The maximum number of message information entries to retrieve. If set to -1, all messages from the start index will be read.

Return Value

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

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionThrown when startIndex is greater than or equal to the total number of available messages.

See Also