PersonalStorage.CreatePredefinedFolder
Contents
[
Hide
]CreatePredefinedFolder(string, StandardIpmFolder, bool)
Creates a standard Outlook folder, such as Inbox or Calendar, with the specified name.
public FolderInfo CreatePredefinedFolder(string name, StandardIpmFolder defaultFolder,
bool createHierarchy)
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the folder. |
| defaultFolder | StandardIpmFolder | Which standard folder to create. |
| createHierarchy | Boolean | true to treat name as a path separated by backslashes and create the folders that do not exist yet. |
Return Value
The new folder.
Exceptions
| exception | condition |
|---|---|
| NotImplementedException | The PST is in the ANSI format, which cannot be edited. |
See Also
- class FolderInfo
- enum StandardIpmFolder
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email
CreatePredefinedFolder(string, StandardIpmFolder)
Creates a standard Outlook folder, such as Inbox or Calendar, with the specified name.
public FolderInfo CreatePredefinedFolder(string name, StandardIpmFolder defaultFolder)
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the folder. |
| defaultFolder | StandardIpmFolder | Which standard folder to create. |
Return Value
The new folder.
Exceptions
| exception | condition |
|---|---|
| InvalidOperationException | The PST is open for reading only. |
| NotImplementedException | The PST is in the ANSI format, which cannot be edited. |
| InvalidOperationException | This standard folder already exists in the PST. |
| NotImplementedException | The file is an OST. |
See Also
- class FolderInfo
- enum StandardIpmFolder
- class PersonalStorage
- namespace Aspose.Email.Storage.Pst
- assembly Aspose.Email