FolderInfoGetContents Method (Boolean)

Get collection of messages.

Namespace:  Aspose.Email.Storage.Pst
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public MessageInfoCollection GetContents(
	bool tryToReadCorruptedContents
)

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: MessageInfoCollection
Collection of MessageInfo.
See Also