FromFile
Contents
[
Hide
]
PersonalStorage.FromFile method (1 of 6)
Load PST from file.
public static PersonalStorage FromFile(string fileName)
Parameter | Type | Description |
---|---|---|
fileName | String | Name of .pst file. |
Return Value
A PersonalStorage object that represents the current PST.
Remarks
By default, the pst will support writing.
See Also
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
PersonalStorage.FromFile method (2 of 6)
Load PST from file.
public static PersonalStorage FromFile(string fileName, bool writable)
Parameter | Type | Description |
---|---|---|
fileName | String | Name of .pst file. |
writable | Boolean | if 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
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
PersonalStorage.FromFile method (3 of 6)
Load PST from file.
public static PersonalStorage FromFile(string fileName, PersonalStorageLoadOptions loadOptions)
Parameter | Type | Description |
---|---|---|
fileName | String | Name of .pst file. |
loadOptions | PersonalStorageLoadOptions | The load options. |
Return Value
A PersonalStorage object that represents the current PST.
Exceptions
exception | condition |
---|---|
ArgumentNullException | fileName - File name can not be null or empty |
ArgumentException | PersonalStorageLoadOptions.LeaveStreamOpen can not be true. |
See Also
- class PersonalStorageLoadOptions
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
PersonalStorage.FromFile method (4 of 6)
Load PST from file.
public static PersonalStorage FromFile(string fileName, CancellationToken token)
Parameter | Type | Description |
---|---|---|
fileName | String | Name of .pst file. |
token | CancellationToken | Propagates 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
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
PersonalStorage.FromFile method (5 of 6)
public static PersonalStorage FromFile(string fileName, bool writable, CancellationToken token)
See Also
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
PersonalStorage.FromFile method (6 of 6)
Load PST from file.
public static PersonalStorage FromFile(string fileName, PersonalStorageLoadOptions loadOptions,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
fileName | String | Name of .pst file. |
loadOptions | PersonalStorageLoadOptions | The load options. |
token | CancellationToken | Propagates 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
- class PersonalStorageLoadOptions
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email