PersonalStorage.SplitIntoAsync

SplitIntoAsync(long, string, CancellationToken)

Splits the pst storage into less sized parts.

public Task SplitIntoAsync(long chunkSize, string path, CancellationToken token = default)
ParameterTypeDescription
chunkSizeInt64The approximate size of a chunk in bytes.
pathStringThe folder path where chunks will be created.
tokenCancellationTokenPropagates notification that operations should be canceled.

Exceptions

exceptioncondition
ArgumentExceptionThrows when the path parameter is null or empty.
ArgumentExceptionThrows when the chunk size is less then the minimum size of pst file.

See Also


SplitIntoAsync(long, string, string, CancellationToken)

Splits the pst storage into less sized parts.

public Task SplitIntoAsync(long chunkSize, string partFileNamePrefix, string path, 
    CancellationToken token = default)
ParameterDescription
chunkSizeThe approximate size of a chunk in bytes.
partFileNamePrefixThe prefix to be added to the filename of each part of pst. The folder path where chunks will be created.Propagates notification that operations should be canceled. If provided, the prefix will be added to the beginning of each file name. If not provided (null or empty), the pst parts will be created without a prefix.

Exceptions

exceptioncondition
ArgumentExceptionThrows when the path parameter is null or empty.
ArgumentExceptionThrows when the chunk size is less then the minimum size of pst file.

Remarks

The pst file names are produced using the following template: {prefix}_part{number}.pst - {prefix}: The filename prefix provided by the partFileNamePrefix parameter. If not provided, this part will be omitted. - {number}: The number of the chunk file.

See Also


SplitIntoAsync(IList<MailQuery>, string, CancellationToken)

Splits the pst storage based on criteria.

public Task SplitIntoAsync(IList<MailQuery> criteria, string path, 
    CancellationToken token = default)
ParameterTypeDescription
criteriaIList`1The collection of MailQuery that represents criteria of pst splitting.
pathStringThe folder path where chunks will be created.
tokenCancellationTokenPropagates notification that operations should be canceled.

Exceptions

exceptioncondition
ArgumentExceptionThrows when the path parameter is null or empty.

See Also


SplitIntoAsync(IList<MailQuery>, string, string, CancellationToken)

Splits the pst storage based on criteria.

public Task SplitIntoAsync(IList<MailQuery> criteria, string partFileNamePrefix, string path, 
    CancellationToken token = default)
ParameterDescription
criteriaThe collection of MailQuery that represents criteria of pst splitting.
partFileNamePrefixThe prefix to be added to the filename of each part of pst. The folder path where chunks will be created.Propagates notification that operations should be canceled. If provided, the prefix will be added to the beginning of each file name. If not provided (null or empty), the pst parts will be created without a prefix.

Exceptions

exceptioncondition
ArgumentExceptionThrows when the path parameter is null or empty.

Remarks

The pst file names are produced using the following template: {prefix}_part{number}.pst - {prefix}: The filename prefix provided by the partFileNamePrefix parameter. If not provided, this part will be omitted. - {number}: The number of the chunk file.

See Also