Aspose::Email::Storage::Olm::OlmFolder Class Reference

Represents folder information in OLM storage. More...

Inherits Object.

Public Member Functions

System::String get_Name () const
 Gets the folder name. More...
 
System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< OlmFolder > > > get_SubFolders () const
 Gets the list of sub-folders. More...
 
bool get_HasMessages ()
 Gets a value indicating whether the current folder has messages. More...
 
int32_t get_MessageCount () const
 Gets the message count. More...
 
System::String get_Path () const
 Gets the path. More...
 
System::String get_FullPath () const
 Gets the full path. More...
 
int32_t get_Depth () const
 Gets the depth. More...
 
 OlmFolder (System::String fullPath, System::SharedPtr< OlmReader > reader)
 Initializes a new instance of the OlmFolder class. More...
 
void IncreaseMessageCount (int32_t count)
 Increases the message count. More...
 
System::SharedPtr< OlmFolderGetSubFolder (System::String subfolderName, bool ignoreCase)
 Gets the subfolder by name. 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::SharedPtr< OlmMessageInfo > > > EnumerateMessages ()
 Exposes the enumerator, which supports an iteration of messages in folder. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< OlmMessageInfo > > > EnumerateMessages (int32_t startIndex, int32_t count)
 Exposes the enumerator, which supports an iteration of messages in folder. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< OlmMessageInfo > > > EnumerateMessages (System::SharedPtr< Aspose::Email::Tools::Search::MailQuery > query)
 Exposes the enumerator, which supports an iteration of messages in folder. More...
 
System::String ToString () const override
 Returns a System::String that represents this instance. More...
 

Protected Member Functions

virtual ~OlmFolder ()
 

Friends

class Aspose::Email::Storage::Olm::OlmReader
 

Detailed Description

Represents folder information in OLM storage.

Constructor & Destructor Documentation

◆ OlmFolder()

Aspose::Email::Storage::Olm::OlmFolder::OlmFolder ( System::String  fullPath,
System::SharedPtr< OlmReader >  reader 
)

Initializes a new instance of the OlmFolder class.

Parameters
fullPathThe full path.

◆ ~OlmFolder()

virtual Aspose::Email::Storage::Olm::OlmFolder::~OlmFolder ( )
protectedvirtual

Member Function Documentation

◆ EnumerateMapiMessages()

System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Email::Mapi::MapiMessage> > > Aspose::Email::Storage::Olm::OlmFolder::EnumerateMapiMessages ( )

Exposes the enumerator, which supports an iteration of messages in folder.

Returns
System::Collections::Generic::IEnumerable<T>, that represents an enumerator that iterates through a messages in folder.

◆ EnumerateMessages() [1/3]

System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<OlmMessageInfo> > > Aspose::Email::Storage::Olm::OlmFolder::EnumerateMessages ( )

Exposes the enumerator, which supports an iteration of messages in folder.

Returns
System::Collections::Generic::IEnumerable<T>, that represents an enumerator that iterates through a messages in folder.

◆ EnumerateMessages() [2/3]

System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<OlmMessageInfo> > > Aspose::Email::Storage::Olm::OlmFolder::EnumerateMessages ( int32_t  startIndex,
int32_t  count 
)

Exposes the enumerator, which supports an iteration of messages in folder.

Parameters
startIndexThe start message index.
countThe number of messages that will be retrieved.
Returns
System::Collections::Generic::IEnumerable<T>, that represents an enumerator that iterates through a messages in folder.

If "count" param is less than 0 or more than remained message count then remained message count will be returned.

Exceptions
ArgumentOutOfRangeExceptionthrows, if startIndex less than 0.
ArgumentOutOfRangeExceptionthrows, if startIndex more or equal to total message count that folder contains.

◆ EnumerateMessages() [3/3]

System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<OlmMessageInfo> > > Aspose::Email::Storage::Olm::OlmFolder::EnumerateMessages ( System::SharedPtr< Aspose::Email::Tools::Search::MailQuery query)

Exposes the enumerator, which supports an iteration of messages in folder.

Parameters
queryMailQuery that represents search query.
Returns
System::Collections::Generic::IEnumerable<T>, that represents an enumerator that iterates through a messages in folder.

◆ get_Depth()

int32_t Aspose::Email::Storage::Olm::OlmFolder::get_Depth ( ) const

Gets the depth.

The depth.

◆ get_FullPath()

System::String Aspose::Email::Storage::Olm::OlmFolder::get_FullPath ( ) const

Gets the full path.

The full path.

◆ get_HasMessages()

bool Aspose::Email::Storage::Olm::OlmFolder::get_HasMessages ( )

Gets a value indicating whether the current folder has messages.

Returns
true if the current folder has messages; otherwise, false.

◆ get_MessageCount()

int32_t Aspose::Email::Storage::Olm::OlmFolder::get_MessageCount ( ) const

Gets the message count.

The message count.

◆ get_Name()

System::String Aspose::Email::Storage::Olm::OlmFolder::get_Name ( ) const

Gets the folder name.

The name.

◆ get_Path()

System::String Aspose::Email::Storage::Olm::OlmFolder::get_Path ( ) const

Gets the path.

The folder path.

◆ get_SubFolders()

System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<OlmFolder> > > Aspose::Email::Storage::Olm::OlmFolder::get_SubFolders ( ) const

Gets the list of sub-folders.

The list of sub-folders.

◆ GetSubFolder()

System::SharedPtr<OlmFolder> Aspose::Email::Storage::Olm::OlmFolder::GetSubFolder ( System::String  subfolderName,
bool  ignoreCase 
)

Gets the subfolder by name.

Parameters
subfolderNameName of subfolder.
ignoreCaseA value that indicates whether the name to match is case insensitive.
Returns
An OlmFolder object.

◆ IncreaseMessageCount()

void Aspose::Email::Storage::Olm::OlmFolder::IncreaseMessageCount ( int32_t  count)

Increases the message count.

◆ ToString()

System::String Aspose::Email::Storage::Olm::OlmFolder::ToString ( ) const
override

Returns a System::String that represents this instance.

Returns
A System::String that represents this instance.

Friends And Related Function Documentation

◆ Aspose::Email::Storage::Olm::OlmReader

friend class Aspose::Email::Storage::Olm::OlmReader
friend