Represents Outlook for Mac storage (.OLM) file. More...
Inherits IDisposable.
Public Member Functions | |
System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< OlmFolder > > > | get_FolderHierarchy () const |
Gets the folder hierarchy. More... | |
OlmStorage (Aspose::Email::Exceptions::TraversalExceptionsCallback callback) | |
Initializes a new instance of the OlmStorage class. Allows setting a callback method for handling exceptions that occur during OLM storage traversal. More... | |
OlmStorage (System::String fileName) | |
Initializes a new instance of the OlmStorage class. More... | |
OlmStorage (System::SharedPtr< System::IO::Stream > stream) | |
Initializes a new instance of the OlmStorage class. More... | |
bool | Load (System::SharedPtr< System::IO::Stream > stream) |
Load OLM storage from stream. This method is used when a OlmStorage object is created using constructor with the TraversalExceptionsCallback parameter. More... | |
bool | Load (System::String fileName) |
Load OLM storage from file. This method is used when a OlmStorage object is created using constructor with the TraversalExceptionsCallback parameter. More... | |
System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< OlmFolder > > > | GetFolders () |
Gets collection of folders. More... | |
System::SharedPtr< OlmFolder > | GetFolder (System::String name, bool ignoreCase) |
Gets the folder by name. More... | |
System::SharedPtr< Aspose::Email::Mapi::MapiMessage > | ExtractMapiMessage (System::String id) |
Get the message from OLM. More... | |
System::SharedPtr< Aspose::Email::Mapi::MapiMessage > | ExtractMapiMessage (System::SharedPtr< OlmMessageInfo > messageInfo) |
Get the message from OLM storage. More... | |
int32_t | GetTotalItemsCount () |
Gets the total items count. Returns the total number of message items contained in the OLM. More... | |
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Email::Mapi::MapiMessage > > > | EnumerateMessages (System::SharedPtr< OlmFolder > folder) |
Exposes the enumerator, which supports an iteration of messages in folder. More... | |
void | Dispose () override |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
void | SetVentureLicense (System::SharedPtr< VentureLicense > ventureLicense) |
Static Public Member Functions | |
static System::SharedPtr< OlmStorage > | FromFile (System::String fileName) |
Load OLM storage from file. More... | |
static System::SharedPtr< OlmStorage > | FromStream (System::SharedPtr< System::IO::Stream > stream) |
Load OLM from stream. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Releases unmanaged and - optionally - managed resources. More... | |
Represents Outlook for Mac storage (.OLM) file.
Aspose::Email::Storage::Olm::OlmStorage::OlmStorage | ( | Aspose::Email::Exceptions::TraversalExceptionsCallback | callback | ) |
Initializes a new instance of the OlmStorage class. Allows setting a callback method for handling exceptions that occur during OLM storage traversal.
callback | The exception callback. |
Aspose::Email::Storage::Olm::OlmStorage::OlmStorage | ( | System::String | fileName | ) |
Initializes a new instance of the OlmStorage class.
fileName | OLM file name. |
ArgumentNullException | throws if file name is null or empty |
Aspose::Email::Storage::Olm::OlmStorage::OlmStorage | ( | System::SharedPtr< System::IO::Stream > | stream | ) |
Initializes a new instance of the OlmStorage class.
stream | Source stream System::IO::Stream with OLM storage data. |
ArgumentNullException | throws if stream is null |
|
override |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
protectedvirtual |
Releases unmanaged and - optionally - managed resources.
disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Email::Mapi::MapiMessage> > > Aspose::Email::Storage::Olm::OlmStorage::EnumerateMessages | ( | System::SharedPtr< OlmFolder > | folder | ) |
Exposes the enumerator, which supports an iteration of messages in folder.
folder | OlmFolder that represents information about folder in OLM storage. |
ArgumentNullException | throws if folder is null |
System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Storage::Olm::OlmStorage::ExtractMapiMessage | ( | System::SharedPtr< OlmMessageInfo > | messageInfo | ) |
Get the message from OLM storage.
messageInfo | An OlmMessageInfo object that represents information about message. |
System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Storage::Olm::OlmStorage::ExtractMapiMessage | ( | System::String | id | ) |
Get the message from OLM.
id | String representation of EntryId. |
|
static |
Load OLM storage from file.
fileName | Name of .olm file. |
|
static |
Load OLM from stream.
stream | The System.IO.Stream. |
System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<OlmFolder> > > Aspose::Email::Storage::Olm::OlmStorage::get_FolderHierarchy | ( | ) | const |
Gets the folder hierarchy.
The folder hierarchy.
System::SharedPtr<OlmFolder> Aspose::Email::Storage::Olm::OlmStorage::GetFolder | ( | System::String | name, |
bool | ignoreCase | ||
) |
Gets the folder by name.
name | Name of folder. |
ignoreCase | A value that indicates whether the name to match is case insensitive. |
System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<OlmFolder> > > Aspose::Email::Storage::Olm::OlmStorage::GetFolders | ( | ) |
Gets collection of folders.
int32_t Aspose::Email::Storage::Olm::OlmStorage::GetTotalItemsCount | ( | ) |
Gets the total items count. Returns the total number of message items contained in the OLM.
bool Aspose::Email::Storage::Olm::OlmStorage::Load | ( | System::SharedPtr< System::IO::Stream > | stream | ) |
Load OLM storage from stream. This method is used when a OlmStorage object is created using constructor with the TraversalExceptionsCallback parameter.
stream | The stream. |
bool Aspose::Email::Storage::Olm::OlmStorage::Load | ( | System::String | fileName | ) |
Load OLM storage from file. This method is used when a OlmStorage object is created using constructor with the TraversalExceptionsCallback parameter.
fileName | The file name. |
void Aspose::Email::Storage::Olm::OlmStorage::SetVentureLicense | ( | System::SharedPtr< VentureLicense > | ventureLicense | ) |