PersonalStorageFromFile Method (String, PersonalStorageLoadOptions)

Load PST from file.

Namespace:  Aspose.Email.Storage.Pst
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public static PersonalStorage FromFile(
	string fileName,
	PersonalStorageLoadOptions loadOptions
)

Parameters

fileName
Type: SystemString
Name of .pst file.
loadOptions
Type: Aspose.Email.Storage.PstPersonalStorageLoadOptions
The load options.

Return Value

Type: PersonalStorage
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