MboxStorageReader.EnumerateMessageInfo
Contents
[
Hide
]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
- class MboxMessageInfo
- class MboxStorageReader
- namespace Aspose.Email.Storage.Mbox
- assembly Aspose.Email
EnumerateMessageInfo(MailQuery)
Enumerates the message information that matches the specified query.
public IEnumerable<MboxMessageInfo> EnumerateMessageInfo(MailQuery query)
| Parameter | Type | Description |
|---|---|---|
| query | MailQuery | The 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
- class MboxMessageInfo
- class MailQuery
- class MboxStorageReader
- namespace Aspose.Email.Storage.Mbox
- assembly Aspose.Email
EnumerateMessageInfo(int, int)
Enumerates a specified number of message information entries, starting from the given index.
public IEnumerable<MboxMessageInfo> EnumerateMessageInfo(int startIndex, int count)
| Parameter | Type | Description |
|---|---|---|
| startIndex | Int32 | The 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. |
| count | Int32 | The 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
| exception | condition |
|---|---|
| ArgumentOutOfRangeException | Thrown when startIndex is greater than or equal to the total number of available messages. |
See Also
- class MboxMessageInfo
- class MboxStorageReader
- namespace Aspose.Email.Storage.Mbox
- assembly Aspose.Email