AddSubFolder

AddSubFolder(string, bool)

Adds the new sub-folder.

public FolderInfo AddSubFolder(string name, bool createHierarchy)
Parameter Type Description
name String The name of sub-folder.
createHierarchy Boolean if set to true, it is possible to create a folder hierarchy using string notation. Backslash (’') is used as path separator.

Return Value

The new sub-folder.

Exceptions

exception condition
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


AddSubFolder(string)

Adds the new sub-folder.

public FolderInfo AddSubFolder(string name)
Parameter Type Description
name String The name of sub-folder.

Return Value

The new sub-folder.

Exceptions

exception condition
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


AddSubFolder(string, string)

Adds the new subfolder.

public FolderInfo AddSubFolder(string name, string containerClass)
Parameter Type Description
name String The name of subfolder.
containerClass String Container class of the sub-Folder object.

Return Value

The new subfolder.

Exceptions

exception condition
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