FolderInfoGetContents Method (Boolean) |
Get collection of messages.
Namespace:
Aspose.Email.Storage.Pst
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntaxpublic MessageInfoCollection GetContents(
bool tryToReadCorruptedContents
)
Public Function GetContents (
tryToReadCorruptedContents As Boolean
) As MessageInfoCollection
public:
MessageInfoCollection^ GetContents(
bool tryToReadCorruptedContents
)
member GetContents :
tryToReadCorruptedContents : bool -> MessageInfoCollection
Parameters
- tryToReadCorruptedContents
- Type: SystemBoolean
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
Type:
MessageInfoCollectionCollection of MessageInfo.
See Also