PersonalStorage.CreatePredefinedFolder

CreatePredefinedFolder(string, StandardIpmFolder, bool)

Creates the standard interpersonal message (IPM) folder.

public FolderInfo CreatePredefinedFolder(string name, StandardIpmFolder defaultFolder, 
    bool createHierarchy)
ParameterTypeDescription
nameStringThe name of folder.
defaultFolderStandardIpmFolderThe value of StandardIpmFolder enumeration.
createHierarchyBooleanif set to true, it is possible to create a folder hierarchy using string notation. Backslash (’') is used as path separator.

Return Value

A FolderInfo object that represents a standard IPM folder.

Exceptions

exceptioncondition
NotImplementedExceptionthrows, if a PST file version is ANSI.

See Also


CreatePredefinedFolder(string, StandardIpmFolder)

Creates the standard interpersonal message (IPM) folder.

public FolderInfo CreatePredefinedFolder(string name, StandardIpmFolder defaultFolder)
ParameterTypeDescription
nameStringThe name of folder.
defaultFolderStandardIpmFolderThe value of StandardIpmFolder enumeration.

Return Value

A FolderInfo object that represents a standard IPM folder.

Exceptions

exceptioncondition
InvalidOperationExceptionThrown when attempting to modify a PST file that is open for reading only.
NotImplementedExceptionThrown when attempting to edit the ANSI file version.
InvalidOperationExceptionThrown when standard folder already exists.
NotImplementedExceptionThrown when attempting to edit the OST file format.

See Also