Represents information about personal folder in PST. More...
Inherits Object.
Public Member Functions | |
System::String | get_DisplayName () |
Gets the display name of folder. More... | |
int32_t | get_ContentCount () |
Gets the total number of items in the folder. More... | |
int32_t | get_ContentUnreadCount () |
Gets the number of unread items in the folder. More... | |
bool | get_HasSubFolders () |
Gets a value indicating whether the Folder object has any subfolders. More... | |
System::String | get_ContainerClass () |
Gets container class of the folder object. More... | |
System::DateTime | get_LastModificationTime () |
Gets the last modification time. More... | |
System::ArrayPtr< uint8_t > | get_EntryId () const |
Gets the entry ID. More... | |
System::String | get_EntryIdString () |
Gets string representation of entry ID. More... | |
System::SharedPtr< Aspose::Email::Mapi::MapiPropertyCollection > | get_Properties () const |
Gets the folder properties. More... | |
System::SharedPtr< Ndb::NodeId > | get_Nid () const |
Gets node Id of Folder PC. More... | |
bool | get_IsUnicode () |
FolderInfo () | |
Initializes a new instance of the FolderInfo class. More... | |
FolderInfo (System::SharedPtr< Ltp::Item > item, System::SharedPtr< PstDoer > doer) | |
Initializes a new instance of the FolderInfo class. More... | |
FolderInfo (System::SharedPtr< Ndb::NodeId > folderNodeId, System::SharedPtr< PstDoer > doer, System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Ltp::PropertyInfo >>> propertyEnumerator) | |
FolderInfo (System::SharedPtr< Ndb::NodeId > folderNodeId, System::SharedPtr< PstDoer > doer, bool throwExceptionsAndClosePst) | |
void | SetProperties (System::SharedPtr< Ndb::NodeId > folderNodeId) |
FolderInfo (System::SharedPtr< Ndb::NodeId > folderNodeId, System::SharedPtr< PstDoer > doer) | |
Initializes a new instance of the FolderInfo class. More... | |
System::SharedPtr< FolderInfo > | GetSubFolder (System::String name) |
Get subfolder. More... | |
System::SharedPtr< FolderInfo > | GetSubFolder (System::String name, bool ignoreCase) |
Gets the subfolder. More... | |
System::SharedPtr< FolderInfo > | GetSubFolder (System::String name, bool ignoreCase, bool handlePathSeparator) |
Retrieves a subfolder with the specified name from the current folder. More... | |
System::SharedPtr< FolderInfoCollection > | GetSubFolders () |
Gets collection of subfolders. More... | |
System::SharedPtr< FolderInfoCollection > | GetSubFolders (FolderKind kind) |
Gets collection of subfolders. More... | |
System::SharedPtr< FolderInfoCollection > | GetSubFolders (System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > query) |
Gets collection of subfolders. More... | |
System::SharedPtr< MessageInfoCollection > | GetContents (bool tryToReadCorruptedContents) |
Get collection of messages. More... | |
System::SharedPtr< MessageInfoCollection > | GetContents () |
Get collection of messages. More... | |
System::SharedPtr< MessageInfoCollection > | GetContents (MessageKind kind) |
Get collection of messages. More... | |
System::SharedPtr< MessageInfoCollection > | GetContents (System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > query) |
Get collection of messages. More... | |
System::SharedPtr< MessageInfoCollection > | GetContents (int32_t startIndex, int32_t count) |
Gets the collection of messages. More... | |
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< FolderInfo > > > | EnumerateFolders () |
Exposes the enumerator, which supports an iteration of subfolders in folder. More... | |
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< FolderInfo > > > | EnumerateFolders (FolderKind kind) |
Exposes the enumerator, which supports an iteration of subfolders in folder. More... | |
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MessageInfo > > > | EnumerateMessages () |
Exposes the enumerator, which supports an iteration of messages in folder. More... | |
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Email::Mapi::Msg::MessageObject > > > | EnumerateMessageObjects () |
Exposes the enumerator, which supports an iteration of messages in folder. More... | |
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Email::Mapi::MapiMessage > > > | EnumerateMapiMessages () |
Exposes the enumerator, which supports an iteration of messages in folder. More... | |
System::SharedPtr< System::Collections::Generic::IEnumerable< System::String > > | EnumerateMessagesEntryId () |
Enumerates the entryID of messages. More... | |
System::String | RetrieveFullPath () |
Retrieves the full path of folder within the PST file. More... | |
System::SharedPtr< FolderInfo > | AddSubFolder (System::String name, bool createHierarchy) |
Adds the new sub-folder. More... | |
System::SharedPtr< FolderInfo > | AddSubFolder (System::String name) |
Adds the new sub-folder. More... | |
System::SharedPtr< FolderInfo > | AddSubFolder (System::String name, System::String containerClass) |
Adds the new subfolder. More... | |
System::SharedPtr< FolderInfo > | AddSubFolder (System::String name, System::SharedPtr< FolderCreationOptions > creationOptions) |
Adds a subfolder with the specified name to the current folder using the provided creation options. More... | |
System::String | AddMessage (System::SharedPtr< Aspose::Email::Mapi::MapiMessage > message) |
Adds a new message into folder. More... | |
System::String | AddFile (System::String fileName, System::String messageClass) |
Adds a file into pst folder. More... | |
System::String | AddMapiMessageItem (System::SharedPtr< Aspose::Email::Mapi::IMapiMessageItem > item) |
Adds the IMapiMessageItem object into folder. More... | |
void | AddMessages (System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Email::Mapi::MapiMessage >>> messages) |
Provides message adding in a bulk mode. More... | |
void | MoveContents (System::SharedPtr< FolderInfo > newFolder) |
Moves the contents to a new folder. More... | |
void | MoveSubfolders (System::SharedPtr< FolderInfo > newFolder) |
Moves the subfolders to a new parent folder. More... | |
void | MergeWith (System::SharedPtr< FolderInfo > sourceFolder) |
Merges the folder with the folder from another pst. More... | |
void | MergeWith (System::SharedPtr< FolderInfo > sourceFolder, bool recursiveHandler) |
Merges the folder with the folder from another pst. OnItemMoved event is called on both messages and directories. More... | |
void | DeleteChildItem (System::ArrayPtr< uint8_t > entryId) |
Deletes the item (folder or message) by it's entryId. More... | |
void | DeleteChildItems (System::SharedPtr< System::Collections::Generic::IEnumerable< System::String >> entryIdCollection) |
Deletes the child messages. More... | |
void | UpdateMessage (System::String entryId, System::SharedPtr< Aspose::Email::Mapi::MapiMessageItemBase > updatedMessage) |
Updates the message in folder. More... | |
void | ChangeMessages (System::SharedPtr< System::Collections::Generic::IEnumerable< System::String >> entryIdCollection, System::SharedPtr< Aspose::Email::Mapi::MapiPropertyCollection > updatedProperties) |
Changes the messages in folder. More... | |
void | ChangeMessages (System::SharedPtr< Aspose::Email::Mapi::MapiPropertyCollection > updatedProperties) |
Changes all messages in folder. More... | |
void | ChangeContainerClass (System::String containerClass) |
Changes the container class. More... | |
void | ChangeDisplayName (System::String newName) |
Changes the display name. More... | |
void | ChangeMessageCount (int32_t delta, int32_t unreadDelta, bool deletion) |
Changes the message count. More... | |
void | UpdateSubfoldersProperty (uint8_t value) |
Updates the sub-folders property. More... | |
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< MessageInfo > > > | EnumerateMessages (System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > mailQuery) |
Enumerates the messages. More... | |
bool | IsStandardIpmFolder () |
Determines whether [is standard ipm folder]. More... | |
StandardIpmFolder | GetPredefinedType (bool getForTopLevelParent) |
Gets the type of predefined folder. More... | |
Public Attributes | |
System::Event< void(System::SharedPtr< System::Object >, System::SharedPtr< MessageAddedEventArgs >)> | MessageAdded |
Occurs when a message is added to the current folder. More... | |
System::Event< void(System::SharedPtr< System::Object >, System::SharedPtr< ItemMovedEventArgs >)> | ItemMoved |
Occurs when an item is moved to the another folder. More... | |
Protected Member Functions | |
virtual | ~FolderInfo () |
Friends | |
class | Aspose::Email::Storage::Pst::PersonalStorage |
class | Aspose::Email::Storage::Pst::PstDoer |
class | Aspose::Email::Storage::Pst::PstUtil |
Represents information about personal folder in PST.
Aspose::Email::Storage::Pst::FolderInfo::FolderInfo | ( | ) |
Initializes a new instance of the FolderInfo class.
Aspose::Email::Storage::Pst::FolderInfo::FolderInfo | ( | System::SharedPtr< Ltp::Item > | item, |
System::SharedPtr< PstDoer > | doer | ||
) |
Initializes a new instance of the FolderInfo class.
doer | The doer. |
item | The item. |
Aspose::Email::Storage::Pst::FolderInfo::FolderInfo | ( | System::SharedPtr< Ndb::NodeId > | folderNodeId, |
System::SharedPtr< PstDoer > | doer, | ||
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Ltp::PropertyInfo >>> | propertyEnumerator | ||
) |
Aspose::Email::Storage::Pst::FolderInfo::FolderInfo | ( | System::SharedPtr< Ndb::NodeId > | folderNodeId, |
System::SharedPtr< PstDoer > | doer, | ||
bool | throwExceptionsAndClosePst | ||
) |
Aspose::Email::Storage::Pst::FolderInfo::FolderInfo | ( | System::SharedPtr< Ndb::NodeId > | folderNodeId, |
System::SharedPtr< PstDoer > | doer | ||
) |
Initializes a new instance of the FolderInfo class.
doer | The doer. |
folderNodeId | The folder node identifier. |
System::ArgumentException | Node Id can not be null or zero;folderNodeId |
System::InvalidOperationException | Could not read folder |
|
protectedvirtual |
System::String Aspose::Email::Storage::Pst::FolderInfo::AddFile | ( | System::String | fileName, |
System::String | messageClass | ||
) |
Adds a file into pst folder.
fileName | The name of file necessary to add. |
messageClass | The message class. |
NotImplementedException | throws, if a PST file version is ANSI. |
ArgumentNullException | throws, if a name of file to add is null or empty. |
InvalidOperationException | throws, if a PST is open for reading only. |
System::String Aspose::Email::Storage::Pst::FolderInfo::AddMapiMessageItem | ( | System::SharedPtr< Aspose::Email::Mapi::IMapiMessageItem > | item | ) |
Adds the IMapiMessageItem object into folder.
item | The item necessary to add. |
NotImplementedException | throws, if a PST file version is ANSI. |
ArgumentNullException | throws, if an item to add is null. |
InvalidOperationException | throws, if a PST is open for reading only. |
System::NotSupportedException | Thrown when MessageClass doesn't belong to IPM.Note, IPM.StickyNote, IPM.Contact, IPM.Activity, IPM.Appointment, IPM.Schedule.meeting, IPM.Task. |
InvalidOperationException | Thrown when MessageClass doesn't correspond to the folder's ContainerClass. |
System::String Aspose::Email::Storage::Pst::FolderInfo::AddMessage | ( | System::SharedPtr< Aspose::Email::Mapi::MapiMessage > | message | ) |
Adds a new message into folder.
message | The message necessary to add. |
NotImplementedException | throws, if a PST file version is ANSI. |
ArgumentNullException | throws, if a message to add is null. |
InvalidOperationException | throws, if a PST is open for reading only. |
void Aspose::Email::Storage::Pst::FolderInfo::AddMessages | ( | System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Email::Mapi::MapiMessage >>> | messages | ) |
Provides message adding in a bulk mode.
messages | An T:System::Collections::IEnumerator representing the enumerator, which supports iteration over a collection of MapiMessage. |
System::SharedPtr<FolderInfo> Aspose::Email::Storage::Pst::FolderInfo::AddSubFolder | ( | System::String | name | ) |
Adds the new sub-folder.
name | The name of sub-folder. |
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. |
InvalidOperationException | throws, if a folder with same name already exists. The comparison will be case-insensitive, and the folder creation operation will consider folders with the same name but different casing as duplicates. |
System::SharedPtr<FolderInfo> Aspose::Email::Storage::Pst::FolderInfo::AddSubFolder | ( | System::String | name, |
bool | createHierarchy | ||
) |
Adds the new sub-folder.
name | The name of sub-folder. |
createHierarchy | if set to true , it is possible to create a folder hierarchy using string notation. Backslash ('\') is used as path separator. |
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. |
System::SharedPtr<FolderInfo> Aspose::Email::Storage::Pst::FolderInfo::AddSubFolder | ( | System::String | name, |
System::SharedPtr< FolderCreationOptions > | creationOptions | ||
) |
Adds a subfolder with the specified name to the current folder using the provided creation options.
name | The name of the subfolder to add. |
creationOptions | The options for creating the subfolder. |
The name parameter specifies the name of the subfolder to add. The creationOptions parameter allows customization of the subfolder creation behavior, such as specifying whether to create the hierarchy of parent folders and the container class of the new subfolder. If the subfolder with the specified name already exists, the behavior depends on the value of FolderCreationOptions::AllowNameCaseDifference. If FolderCreationOptions::AllowNameCaseDifference is set to true
, a difference in name casing will be allowed, and the subfolder will be added even if an existing folder with the same name but in a different case exists. If FolderCreationOptions::AllowNameCaseDifference is set to false
, the comparison will be case-insensitive, and an InvalidOperationException will be thrown to indicate that a folder with the specified name already exists. The name may contain backslash () as the path separators (for example, "parent1\parent2\subfolder"). In this case if FolderCreationOptions::CreateHierarchy is set to true
, the hierarchy of parent folders should be created.
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. |
InvalidOperationException | throws, if a folder with same name already exists. Whether folders have the same name will depend on the FolderCreationOptions::AllowNameCaseDifference parameter. |
System::SharedPtr<FolderInfo> Aspose::Email::Storage::Pst::FolderInfo::AddSubFolder | ( | System::String | name, |
System::String | containerClass | ||
) |
Adds the new subfolder.
name | The name of subfolder. |
containerClass | Container class of the sub-Folder object. |
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. |
InvalidOperationException | throws, if a folder with same name already exists. The comparison will be case-insensitive, and the folder creation operation will consider folders with the same name but different casing as duplicates. |
void Aspose::Email::Storage::Pst::FolderInfo::ChangeContainerClass | ( | System::String | containerClass | ) |
Changes the container class.
containerClass | Container class of the of the folder object. |
InvalidOperationException | throws, if a PST is open for reading only. |
NotImplementedException | throws, if a PST file version is ANSI. |
void Aspose::Email::Storage::Pst::FolderInfo::ChangeDisplayName | ( | System::String | newName | ) |
Changes the display name.
newName | A new name. |
InvalidOperationException | throws, if a PST is open for reading only. |
NotImplementedException | throws, if a PST file version is ANSI. |
void Aspose::Email::Storage::Pst::FolderInfo::ChangeMessageCount | ( | int32_t | delta, |
int32_t | unreadDelta, | ||
bool | deletion | ||
) |
Changes the message count.
delta | Total count variation. |
unreadDelta | Unread count variation. |
deletion | If true then variation is negative. |
void Aspose::Email::Storage::Pst::FolderInfo::ChangeMessages | ( | System::SharedPtr< Aspose::Email::Mapi::MapiPropertyCollection > | updatedProperties | ) |
Changes all messages in folder.
updatedProperties | The updated properties. |
System::NotImplementedException | The ANSI file version editing is not implemented. |
System::InvalidOperationException | The PST is open for reading only. or The entryId is incorrect. |
System::ArgumentNullException | entryIdCollection;The collection of entry ids cannot be null. or updatedProperties;The collection of properties cannot be null. |
void Aspose::Email::Storage::Pst::FolderInfo::ChangeMessages | ( | System::SharedPtr< System::Collections::Generic::IEnumerable< System::String >> | entryIdCollection, |
System::SharedPtr< Aspose::Email::Mapi::MapiPropertyCollection > | updatedProperties | ||
) |
Changes the messages in folder.
entryIdCollection | The entry identifier collection. |
updatedProperties | The updated properties. |
System::NotImplementedException | The ANSI file version editing is not implemented. |
System::InvalidOperationException | The PST is open for reading only. or The entryId is incorrect. |
System::ArgumentNullException | entryIdCollection;The collection of entry ids cannot be null. or updatedProperties;The collection of properties cannot be null. |
void Aspose::Email::Storage::Pst::FolderInfo::DeleteChildItem | ( | System::ArrayPtr< uint8_t > | entryId | ) |
Deletes the item (folder or message) by it's entryId.
The item must be contained in a folder.
entryId | The entry id. |
ArgumentNullException | throws, if entryId is null. |
InvalidOperationException | throws, if the item doesn't belong to the folder or the item can't be deleted or entryID has the incorrect value. |
InvalidOperationException | throws, if a PST is open for reading only. |
void Aspose::Email::Storage::Pst::FolderInfo::DeleteChildItems | ( | System::SharedPtr< System::Collections::Generic::IEnumerable< System::String >> | entryIdCollection | ) |
Deletes the child messages.
entryIdCollection | The entry id collection. |
System::NotImplementedException | The ANSI file version editing is not implemented. |
System::InvalidOperationException | The PST is open for reading only. or The item, to be deleted, doesn't belong to this folder. or The search folder cannot be deleted. or The \Deleted Items\ folder cannot be deleted. or The entryId is incorrect. |
System::ArgumentNullException | entryId;The entryId cannot be null. |
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<FolderInfo> > > Aspose::Email::Storage::Pst::FolderInfo::EnumerateFolders | ( | ) |
Exposes the enumerator, which supports an iteration of subfolders in folder.
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<FolderInfo> > > Aspose::Email::Storage::Pst::FolderInfo::EnumerateFolders | ( | FolderKind | kind | ) |
Exposes the enumerator, which supports an iteration of subfolders in folder.
kind | The FolderKind that represents kind of folder. |
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Email::Mapi::MapiMessage> > > Aspose::Email::Storage::Pst::FolderInfo::EnumerateMapiMessages | ( | ) |
Exposes the enumerator, which supports an iteration of messages in folder.
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Email::Mapi::Msg::MessageObject> > > Aspose::Email::Storage::Pst::FolderInfo::EnumerateMessageObjects | ( | ) |
Exposes the enumerator, which supports an iteration of messages in folder.
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<MessageInfo> > > Aspose::Email::Storage::Pst::FolderInfo::EnumerateMessages | ( | ) |
Exposes the enumerator, which supports an iteration of messages in folder.
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<MessageInfo> > > Aspose::Email::Storage::Pst::FolderInfo::EnumerateMessages | ( | System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > | mailQuery | ) |
Enumerates the messages.
mailQuery | The mail query. |
System::SharedPtr<System::Collections::Generic::IEnumerable<System::String> > Aspose::Email::Storage::Pst::FolderInfo::EnumerateMessagesEntryId | ( | ) |
Enumerates the entryID of messages.
System::String Aspose::Email::Storage::Pst::FolderInfo::get_ContainerClass | ( | ) |
Gets container class of the folder object.
The container class.
int32_t Aspose::Email::Storage::Pst::FolderInfo::get_ContentCount | ( | ) |
Gets the total number of items in the folder.
The content count.
int32_t Aspose::Email::Storage::Pst::FolderInfo::get_ContentUnreadCount | ( | ) |
Gets the number of unread items in the folder.
The content unread count.
System::String Aspose::Email::Storage::Pst::FolderInfo::get_DisplayName | ( | ) |
Gets the display name of folder.
The display name.
System::ArrayPtr<uint8_t> Aspose::Email::Storage::Pst::FolderInfo::get_EntryId | ( | ) | const |
Gets the entry ID.
The entry id.
System::String Aspose::Email::Storage::Pst::FolderInfo::get_EntryIdString | ( | ) |
Gets string representation of entry ID.
The entry id string.
bool Aspose::Email::Storage::Pst::FolderInfo::get_HasSubFolders | ( | ) |
Gets a value indicating whether the Folder object has any subfolders.
The has sub folders.
bool Aspose::Email::Storage::Pst::FolderInfo::get_IsUnicode | ( | ) |
System::DateTime Aspose::Email::Storage::Pst::FolderInfo::get_LastModificationTime | ( | ) |
Gets the last modification time.
The last modification time. If the folder doesn't have PR_LAST_MODIFICATION_TIME property, DateTime.MinValue is returned.
System::SharedPtr<Ndb::NodeId> Aspose::Email::Storage::Pst::FolderInfo::get_Nid | ( | ) | const |
Gets node Id of Folder PC.
System::SharedPtr<Aspose::Email::Mapi::MapiPropertyCollection> Aspose::Email::Storage::Pst::FolderInfo::get_Properties | ( | ) | const |
Gets the folder properties.
System::SharedPtr<MessageInfoCollection> Aspose::Email::Storage::Pst::FolderInfo::GetContents | ( | ) |
Get collection of messages.
System::SharedPtr<MessageInfoCollection> Aspose::Email::Storage::Pst::FolderInfo::GetContents | ( | bool | tryToReadCorruptedContents | ) |
Get collection of messages.
tryToReadCorruptedContents | If the value of this parameter is true, the method will try to read the content even if the file is corrupted. This value can be used if the GetContents() method throws an exception about the file corruption. If the value of this parameter is false, the method works in the same way as GetContents() method without parameters. |
System::SharedPtr<MessageInfoCollection> Aspose::Email::Storage::Pst::FolderInfo::GetContents | ( | int32_t | startIndex, |
int32_t | count | ||
) |
Gets the collection of messages.
startIndex | The start message index. |
count | The number of messages that will be retrieved. |
If "count" param is less than 0 or more than remained message count then remained message count will be returned.
ArgumentOutOfRangeException | throws, if startIndex less than 0. |
ArgumentOutOfRangeException | throws, if startIndex more or equal to total message count that folder contains. |
System::SharedPtr<MessageInfoCollection> Aspose::Email::Storage::Pst::FolderInfo::GetContents | ( | MessageKind | kind | ) |
System::SharedPtr<MessageInfoCollection> Aspose::Email::Storage::Pst::FolderInfo::GetContents | ( | System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > | query | ) |
Get collection of messages.
query | MailQuery that represents search query. |
StandardIpmFolder Aspose::Email::Storage::Pst::FolderInfo::GetPredefinedType | ( | bool | getForTopLevelParent | ) |
Gets the type of predefined folder.
getForTopLevelParent | If true, returns the predefined type for the top-level parent folder. This determines whether the current folder is a subfolder of a predefined folder. If false, it returns the predefined type for the current folder. |
Checks if the folder is predefined by returning the corresponding type.
System::SharedPtr<FolderInfo> Aspose::Email::Storage::Pst::FolderInfo::GetSubFolder | ( | System::String | name | ) |
System::SharedPtr<FolderInfo> Aspose::Email::Storage::Pst::FolderInfo::GetSubFolder | ( | System::String | name, |
bool | ignoreCase | ||
) |
Gets the subfolder.
name | Name of subfolder. |
ignoreCase | Indicates that a search should ignore case sensitivity when matching the folder name. |
System::SharedPtr<FolderInfo> Aspose::Email::Storage::Pst::FolderInfo::GetSubFolder | ( | System::String | name, |
bool | ignoreCase, | ||
bool | handlePathSeparator | ||
) |
Retrieves a subfolder with the specified name from the current folder.
name | The name of the subfolder to retrieve. |
ignoreCase | Specifies whether to perform a case-insensitive search for folders with the given name. |
handlePathSeparator | Specifies whether the specified folder name should be treated as a path if it contains backslashes. |
null
if the subfolder is not found.The name parameter specifies the name of the subfolder to retrieve.
The ignoreCase parameter determines whether the search for the subfolder name should be case-sensitive or case-insensitive. If set to true
, the search will be case-insensitive, otherwise, it will be case-sensitive.
The handlePathSeparator parameter specifies whether the specified folder name should be treated as a path if it contains backslashes. If set to true
, the method will interpret the folder name as a path, attempting to navigate to the subfolder using the path. If set to false
, the method will treat the folder name as a simple name, searching for a subfolder with an exact name match.
If the subfolder is found, the method returns the FolderInfo object representing the retrieved subfolder. If the subfolder is not found, the method returns null
.
System::SharedPtr<FolderInfoCollection> Aspose::Email::Storage::Pst::FolderInfo::GetSubFolders | ( | ) |
Gets collection of subfolders.
System::SharedPtr<FolderInfoCollection> Aspose::Email::Storage::Pst::FolderInfo::GetSubFolders | ( | FolderKind | kind | ) |
Gets collection of subfolders.
kind | The FolderKind that represents kind of folder. |
System::SharedPtr<FolderInfoCollection> Aspose::Email::Storage::Pst::FolderInfo::GetSubFolders | ( | System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > | query | ) |
Gets collection of subfolders.
query | MailQuery that represents search query. |
bool Aspose::Email::Storage::Pst::FolderInfo::IsStandardIpmFolder | ( | ) |
Determines whether [is standard ipm folder].
true
if [is standard ipm folder]; otherwise, false
. void Aspose::Email::Storage::Pst::FolderInfo::MergeWith | ( | System::SharedPtr< FolderInfo > | sourceFolder | ) |
Merges the folder with the folder from another pst.
sourceFolder | The source folder. |
InvalidOperationException | Throws when the source folder is located in the same pst. |
void Aspose::Email::Storage::Pst::FolderInfo::MergeWith | ( | System::SharedPtr< FolderInfo > | sourceFolder, |
bool | recursiveHandler | ||
) |
Merges the folder with the folder from another pst. OnItemMoved event is called on both messages and directories.
sourceFolder | The source folder. |
recursiveHandler | If true, OnItemMoved will be called on all messages, including messages in sub-directories, otherwise OnItemMoved will be called only for messages in the current directory. |
InvalidOperationException | Throws when the source folder is located in the same pst. |
void Aspose::Email::Storage::Pst::FolderInfo::MoveContents | ( | System::SharedPtr< FolderInfo > | newFolder | ) |
Moves the contents to a new folder.
newFolder | The new folder. |
void Aspose::Email::Storage::Pst::FolderInfo::MoveSubfolders | ( | System::SharedPtr< FolderInfo > | newFolder | ) |
Moves the subfolders to a new parent folder.
newFolder | The new parent folder. |
System::String Aspose::Email::Storage::Pst::FolderInfo::RetrieveFullPath | ( | ) |
Retrieves the full path of folder within the PST file.
void Aspose::Email::Storage::Pst::FolderInfo::SetProperties | ( | System::SharedPtr< Ndb::NodeId > | folderNodeId | ) |
void Aspose::Email::Storage::Pst::FolderInfo::UpdateMessage | ( | System::String | entryId, |
System::SharedPtr< Aspose::Email::Mapi::MapiMessageItemBase > | updatedMessage | ||
) |
Updates the message in folder.
entryId | The message entry identifier. |
updatedMessage | The updated message. |
System::NotImplementedException | The ANSI file version editing is not implemented. |
System::InvalidOperationException | The PST is open for reading only. or The entryId is incorrect. |
System::ArgumentNullException | entryId; The entry id cannot be null or empty. or updatedMessage; The message cannot be null. |
void Aspose::Email::Storage::Pst::FolderInfo::UpdateSubfoldersProperty | ( | uint8_t | value | ) |
Updates the sub-folders property.
value | The property value. |
|
friend |
|
friend |
|
friend |
System::Event<void(System::SharedPtr<System::Object>, System::SharedPtr<ItemMovedEventArgs>)> Aspose::Email::Storage::Pst::FolderInfo::ItemMoved |
Occurs when an item is moved to the another folder.
System::Event<void(System::SharedPtr<System::Object>, System::SharedPtr<MessageAddedEventArgs>)> Aspose::Email::Storage::Pst::FolderInfo::MessageAdded |
Occurs when a message is added to the current folder.