FolderInfoGetContents Method (Int32, Int32)

Gets the collection of messages.

Namespace:  Aspose.Email.Storage.Pst
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public MessageInfoCollection GetContents(
	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: MessageInfoCollection
Collection of MessageInfo.
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