OlmFolder.EnumerateMessages

EnumerateMessages()

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

public IEnumerable<OlmMessageInfo> EnumerateMessages()

Return Value

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

See Also


EnumerateMessages(int, int)

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

public IEnumerable<OlmMessageInfo> EnumerateMessages(int startIndex, int count)
ParameterTypeDescription
startIndexInt32The start message index.
countInt32The number of messages that will be retrieved.

Return Value

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

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionthrows, if startIndex less than 0.
ArgumentOutOfRangeExceptionthrows, if startIndex more or equal to total message count that folder contains.

Remarks

If “count” param is less than 0 or more than remained message count then remained message count will be returned.

See Also


EnumerateMessages(MailQuery)

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

public IEnumerable<OlmMessageInfo> EnumerateMessages(MailQuery query)
ParameterTypeDescription
queryMailQueryMailQuery that represents search query.

Return Value

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

See Also