public class FolderCreationOptions extends Object
Represents the options for creating a subfolder in the Outlook PST message store. This class serves as a container for configuring specific settings related to the creation of subfolders.
| Constructor and Description |
|---|
FolderCreationOptions()
Initializes a new instance of
the
FolderCreationOptions class with default values. |
FolderCreationOptions(boolean createHierarchy,
boolean allowNameCaseDifference)
Initializes a new instance of
the
FolderCreationOptions class with the specified parameters. |
FolderCreationOptions(boolean createHierarchy,
boolean allowNameCaseDifference,
String containerClass)
Initializes a new instance of
the
FolderCreationOptions class with the specified parameters. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowNameCaseDifference()
Gets or sets a value indicating whether to allow a difference in name casing when comparing folder names.
|
String |
getContainerClass()
Gets or sets the container class for the new subfolder.
|
boolean |
getCreateHierarchy()
Gets or sets a value indicating whether to create the hierarchy of parent folders.
|
boolean |
getEnforceContainerClassMatching()
Gets or sets a value indicating whether to enforce container class checking.
|
void |
setAllowNameCaseDifference(boolean value)
Gets or sets a value indicating whether to allow a difference in name casing when comparing folder names.
|
void |
setContainerClass(String value)
Gets or sets the container class for the new subfolder.
|
void |
setCreateHierarchy(boolean value)
Gets or sets a value indicating whether to create the hierarchy of parent folders.
|
void |
setEnforceContainerClassMatching(boolean value)
Gets or sets a value indicating whether to enforce container class checking.
|
public FolderCreationOptions()
Initializes a new instance of
the FolderCreationOptions class with default values.
public FolderCreationOptions(boolean createHierarchy,
boolean allowNameCaseDifference)
Initializes a new instance of
the FolderCreationOptions class with the specified parameters.
createHierarchy - A value indicating whether to create
the hierarchy of parent folders if they don't exist.allowNameCaseDifference - A value indicating whether to
allow a difference in name casing when comparing folder names.public FolderCreationOptions(boolean createHierarchy,
boolean allowNameCaseDifference,
String containerClass)
Initializes a new instance of
the FolderCreationOptions class with the specified parameters.
createHierarchy - A value indicating whether to create
the hierarchy of parent folders if they don't exist.allowNameCaseDifference - A value indicating whether to
allow a difference in name casing when comparing folder names.containerClass - The container class for the new subfolder.public final boolean getCreateHierarchy()
Gets or sets a value indicating whether to create the hierarchy of parent folders.
Value:true if the hierarchy of parent folders should be created.
In this case, the name of the subfolder to be created is considered as path;
false if only the subfolder with specified name should be created.
The default value is false.
public final void setCreateHierarchy(boolean value)
Gets or sets a value indicating whether to create the hierarchy of parent folders.
Value:true if the hierarchy of parent folders should be created.
In this case, the name of the subfolder to be created is considered as path;
false if only the subfolder with specified name should be created.
The default value is false.
public final boolean getAllowNameCaseDifference()
Gets or sets a value indicating whether to allow a difference in name casing when comparing folder names.
Value:true if a difference in name casing should be allowed when comparing folder names; otherwise, false.
The default value is false.
AllowNameCaseDifference(getAllowNameCaseDifference()/setAllowNameCaseDifference(boolean)) is set to true,
the folder names will be treated as different even if the casing differs. In this case, no exception will be thrown, and the folder will be added.
When AllowNameCaseDifference(getAllowNameCaseDifference()/setAllowNameCaseDifference(boolean)) is set to false, the comparison will be case-insensitive, and the folder creation operation will consider
folders with the same name but different casing as duplicates, throwing an InvalidOperationException to indicate that a folder with the specified name already exists.
public final void setAllowNameCaseDifference(boolean value)
Gets or sets a value indicating whether to allow a difference in name casing when comparing folder names.
Value:true if a difference in name casing should be allowed when comparing folder names; otherwise, false.
The default value is false.
AllowNameCaseDifference(getAllowNameCaseDifference()/setAllowNameCaseDifference(boolean)) is set to true,
the folder names will be treated as different even if the casing differs. In this case, no exception will be thrown, and the folder will be added.
When AllowNameCaseDifference(getAllowNameCaseDifference()/setAllowNameCaseDifference(boolean)) is set to false, the comparison will be case-insensitive, and the folder creation operation will consider
folders with the same name but different casing as duplicates, throwing an InvalidOperationException to indicate that a folder with the specified name already exists.
public final boolean getEnforceContainerClassMatching()
Gets or sets a value indicating whether to enforce container class checking.
Value: True if container class checking should be enforced; otherwise, false. Default is false.public final void setEnforceContainerClassMatching(boolean value)
Gets or sets a value indicating whether to enforce container class checking.
Value: True if container class checking should be enforced; otherwise, false. Default is false.public final String getContainerClass()
Gets or sets the container class for the new subfolder.
public final void setContainerClass(String value)
Gets or sets the container class for the new subfolder.
Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.