OlmFolderEnumerateMessages Method (Int32, Int32)

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

Namespace:  Aspose.Email.Storage.Olm
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public IEnumerable<OlmMessageInfo> EnumerateMessages(
	int startIndex,
	int count
)

Parameters

startIndex
Type: SystemInt32
The start message index.
count
Type: SystemInt32
The number of messages that will be retrieved.

Return Value

Type: IEnumerableOlmMessageInfo
IEnumerableT, that represents an enumerator that iterates through a messages in folder.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException throws, if startIndex less than 0.
ArgumentOutOfRangeException throws, 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