FolderInfoAddSubFolder Method (String, String)

Adds the new subfolder.

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

Parameters

name
Type: SystemString
The name of subfolder.
containerClass
Type: SystemString
Container class of the sub-Folder object.

Return Value

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