PersonalStorage.Create
Create(string, FileFormatVersion, CancellationToken)
Creates the new PST file with the specified file name.
public static PersonalStorage Create(string fileName, FileFormatVersion version,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
fileName | String | The full name of the file. |
version | FileFormatVersion | The PST file version. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
A PersonalStorage object that represents the new PST.
Exceptions
exception | condition |
---|---|
NotImplementedException | throws if ANSI file version is created |
ArgumentNullException | throws if file name is null or empty |
Remarks
Note, only Unicode file version creation is supported now.
See Also
- enum FileFormatVersion
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
Create(Stream, FileFormatVersion, CancellationToken)
Creates the PST in a stream.
public static PersonalStorage Create(Stream stream, FileFormatVersion version,
CancellationToken token)
Parameter | Type | Description |
---|---|---|
stream | Stream | The stream in which PST is created. |
version | FileFormatVersion | The PST file version. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
A PersonalStorage object that represents the new PST.
Exceptions
exception | condition |
---|---|
NotImplementedException | throws if ANSI file version is created |
ArgumentNullException | throws if file name is null or empty |
Remarks
Note, only Unicode file version creation is supported now.
See Also
- enum FileFormatVersion
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
Create(Stream, FileFormatVersion, bool, CancellationToken)
Creates the PST in a stream.
public static PersonalStorage Create(Stream stream, FileFormatVersion version,
bool leaveStreamOpen, CancellationToken token)
Parameter | Type | Description |
---|---|---|
stream | Stream | The stream in which PST is created. |
version | FileFormatVersion | The PST file version. |
leaveStreamOpen | Boolean | Leave stream open when PersonalStorage is disposed. |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
A PersonalStorage object that represents the new PST.
Exceptions
exception | condition |
---|---|
NotImplementedException | throws if ANSI file version is created |
ArgumentNullException | throws if file name is null or empty |
Remarks
Note, only Unicode file version creation is supported now.
See Also
- enum FileFormatVersion
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
Create(string, FileFormatVersion)
Creates the new PST file with the specified file name.
public static PersonalStorage Create(string fileName, FileFormatVersion version)
Parameter | Type | Description |
---|---|---|
fileName | String | The full name of the file. |
version | FileFormatVersion | The PST file version. |
Return Value
A PersonalStorage object that represents the new PST.
Exceptions
exception | condition |
---|---|
NotImplementedException | throws if ANSI file version is created |
ArgumentNullException | throws if file name is null or empty |
Remarks
Note, only Unicode file version creation is supported now.
See Also
- enum FileFormatVersion
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
Create(Stream, FileFormatVersion)
Creates the PST in a stream.
public static PersonalStorage Create(Stream stream, FileFormatVersion version)
Parameter | Type | Description |
---|---|---|
stream | Stream | The stream in which PST is created. |
version | FileFormatVersion | The PST file version. |
Return Value
A PersonalStorage object that represents the new PST.
Exceptions
exception | condition |
---|---|
NotImplementedException | throws if ANSI file version is created |
ArgumentNullException | throws if stream is null |
Remarks
Note, only Unicode file version creation is supported now.
See Also
- enum FileFormatVersion
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
Create(Stream, FileFormatVersion, bool)
Creates the PST in a stream.
public static PersonalStorage Create(Stream stream, FileFormatVersion version, bool leaveStreamOpen)
Parameter | Type | Description |
---|---|---|
stream | Stream | The stream in which PST is created. |
version | FileFormatVersion | The PST file version. |
leaveStreamOpen | Boolean | Leave stream open when PersonalStorage is disposed. |
Return Value
A PersonalStorage object that represents the new PST.
Exceptions
exception | condition |
---|---|
NotImplementedException | throws if ANSI file version is created |
ArgumentNullException | throws if stream is null |
Remarks
Note, only Unicode file version creation is supported now.
See Also
- enum FileFormatVersion
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email