PersonalStorage.FromFile

FromFile(string)

Load PST from file.

public static PersonalStorage FromFile(string fileName)
ParameterTypeDescription
fileNameStringName of .pst file.

Return Value

A PersonalStorage object that represents the current PST.

Remarks

By default, the pst will support writing.

See Also


FromFile(string, bool)

Load PST from file.

public static PersonalStorage FromFile(string fileName, bool writable)
ParameterTypeDescription
fileNameStringName of .pst file.
writableBooleanif set to true then the the pst file will support writing, otherwise it will be opened in read-only mode.

Return Value

A PersonalStorage object that represents the current PST.

See Also


FromFile(string, PersonalStorageLoadOptions)

Load PST from file.

public static PersonalStorage FromFile(string fileName, PersonalStorageLoadOptions loadOptions)
ParameterTypeDescription
fileNameStringName of .pst file.
loadOptionsPersonalStorageLoadOptionsThe load options.

Return Value

A PersonalStorage object that represents the current PST.

Exceptions

exceptioncondition
ArgumentNullExceptionfileName - File name can not be null or empty
ArgumentExceptionPersonalStorageLoadOptions.LeaveStreamOpen can not be true.

See Also


FromFile(string, CancellationToken)

Load PST from file.

public static PersonalStorage FromFile(string fileName, CancellationToken token)
ParameterTypeDescription
fileNameStringName of .pst file.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

A PersonalStorage object that represents the current PST.

Remarks

By default, the pst will support writing.

See Also


FromFile(string, bool, CancellationToken)

public static PersonalStorage FromFile(string fileName, bool writable, CancellationToken token)

See Also


FromFile(string, PersonalStorageLoadOptions, CancellationToken)

Load PST from file.

public static PersonalStorage FromFile(string fileName, PersonalStorageLoadOptions loadOptions, 
    CancellationToken token)
ParameterTypeDescription
fileNameStringName of .pst file.
loadOptionsPersonalStorageLoadOptionsThe load options.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

A PersonalStorage object that represents the current PST.

Remarks

By default, the pst will support writing.

See Also