PstReadOptions Class

The options of PstFile. The limits protect the reader from files crafted to make it use too much memory or time.

public sealed class PstReadOptions

Constructors

NameDescription
PstReadOptions()

PstReadOptions()

PstReadOptions.cs
public PstReadOptions()

No documentation is available.

Properties

NameDescription
CacheSizeGets or sets the maximum number of pages and blocks kept in memory. The default is 256.
MaxEmbeddedMessageDepthGets or sets the maximum depth of embedded messages (a message attached to a message). The default is 32.
MaxPropertySizeGets or sets the maximum size, in bytes, of a property value or a structure the reader loads in memory. The default is 256 MB. Attachment contents read with MapiAttachment.OpenRead are not limited.
MaxTreeDepthGets or sets the maximum number of levels of the B-trees (pages, data trees, subnode trees, heaps). The default is 32.
VerifyChecksumsGets or sets whether the reader checks the CRC of the pages and the blocks it reads. The default is true.

Gets or sets the maximum number of pages and blocks kept in memory. The default is 256.

public int CacheSize { get; set; }

Property value

int

MaxEmbeddedMessageDepth

PstReadOptions.cs

Gets or sets the maximum depth of embedded messages (a message attached to a message). The default is 32.

public int MaxEmbeddedMessageDepth { get; set; }

Property value

int

MaxPropertySize

PstReadOptions.cs

Gets or sets the maximum size, in bytes, of a property value or a structure the reader loads in memory. The default is 256 MB. Attachment contents read with MapiAttachment.OpenRead are not limited.

public long MaxPropertySize { get; set; }

Property value

long

MaxTreeDepth

PstReadOptions.cs

Gets or sets the maximum number of levels of the B-trees (pages, data trees, subnode trees, heaps). The default is 32.

public int MaxTreeDepth { get; set; }

Property value

int

VerifyChecksums

PstReadOptions.cs

Gets or sets whether the reader checks the CRC of the pages and the blocks it reads. The default is true.

public bool VerifyChecksums { get; set; }

Property value

bool