FolderInfo.GetContents
Contents
[
Hide
]GetContents(bool)
Get collection of messages.
public MessageInfoCollection GetContents(bool tryToReadCorruptedContents)
Parameter | Type | Description |
---|---|---|
tryToReadCorruptedContents | Boolean | If the value of this parameter is true, the method will try to read the content even if the file is corrupted. This value can be used if the GetContents() method throws an exception about the file corruption. If the value of this parameter is false, the method works in the same way as GetContents() method without parameters. |
Return Value
Collection of MessageInfo.
See Also
- class MessageInfoCollection
- class FolderInfo
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
GetContents()
Get collection of messages.
public MessageInfoCollection GetContents()
Return Value
Collection of MessageInfo.
See Also
- class MessageInfoCollection
- class FolderInfo
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
GetContents(MessageKind)
Get collection of messages.
public MessageInfoCollection GetContents(MessageKind kind)
Parameter | Type | Description |
---|---|---|
kind | MessageKind | The message kind. |
Return Value
Collection of MessageInfo.
See Also
- class MessageInfoCollection
- enum MessageKind
- class FolderInfo
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
GetContents(MailQuery)
Get collection of messages.
public MessageInfoCollection GetContents(MailQuery query)
Parameter | Type | Description |
---|---|---|
query | MailQuery | MailQuery that represents search query. |
Return Value
Collection of MessageInfo.
See Also
- class MessageInfoCollection
- class MailQuery
- class FolderInfo
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
GetContents(int, int)
Gets the collection of messages.
public MessageInfoCollection GetContents(int startIndex, int count)
Parameter | Type | Description |
---|---|---|
startIndex | Int32 | The start message index. |
count | Int32 | The number of messages that will be retrieved. |
Return Value
Collection of MessageInfo.
Exceptions
exception | condition |
---|---|
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
- class MessageInfoCollection
- class FolderInfo
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email