FolderInfoAddSubFolder Method (String, Boolean)

Adds the new sub-folder.

Namespace:  Aspose.Email.Storage.Pst
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public FolderInfo AddSubFolder(
	string name,
	bool createHierarchy
)

Parameters

name
Type: SystemString
The name of sub-folder.
createHierarchy
Type: SystemBoolean
if set to true, it is possible to create a folder hierarchy using string notation. Backslash ('\') is used as path separator.

Return Value

Type: FolderInfo
The new sub-folder.
Exceptions
ExceptionCondition
NotImplementedException throws, if a PST file version is ANSI.
ArgumentNullException throws, if a sub-folder name is null or empty.
InvalidOperationException throws, if a PST is open for reading only.
See Also