PersonalStorageCreate Method (Stream, FileFormatVersion, Boolean)

Creates the PST in a stream.

Namespace:  Aspose.Email.Storage.Pst
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public static PersonalStorage Create(
	Stream stream,
	FileFormatVersion version,
	bool leaveStreamOpen
)

Parameters

stream
Type: System.IOStream
The stream in which PST is created.
version
Type: Aspose.Email.Storage.PstFileFormatVersion
The PST file version.
leaveStreamOpen
Type: SystemBoolean
Leave stream open when PersonalStorage is disposed.

Return Value

Type: PersonalStorage
A PersonalStorage object that represents the new PST.
Exceptions
ExceptionCondition
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