Represents an Outlook for Mac (.OLM) storage file and provides functionality to access and manipulate the data within the file such as emails, contacts, calendars, tasks, and notes. More...
Inherits IDisposable.
Public Member Functions | |
| System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< OlmFolder > > > | get_FolderHierarchy () const |
| Gets the folder hierarchy. More... | |
| OlmStorage (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< System::Collections::Generic::IList< System::SharedPtr< OlmItemCategory > > > | GetCategories () |
| Gets the supported item categories. More... | |
| System::SharedPtr< Mapi::MapiMessage > | ExtractMapiMessage (System::String id) |
| Get the message from OLM. More... | |
| System::SharedPtr< 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< 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 an Outlook for Mac (.OLM) storage file and provides functionality to access and manipulate the data within the file such as emails, contacts, calendars, tasks, and notes.
The OlmStorage class allows users to read from and interact with the contents of .OLM files typically used by Microsoft Outlook for Mac. This class handles the various data types stored within an .OLM file by providing methods to enumerate and extract information.
The following code shows how to access and retrieve information from an Outlook for Mac data file (.olm file).
[C#]
[Visual Basic]
| Aspose::Email::Storage::Olm::OlmStorage::OlmStorage | ( | 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<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<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<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<System::Collections::Generic::IList<System::SharedPtr<OlmItemCategory> > > Aspose::Email::Storage::Olm::OlmStorage::GetCategories | ( | ) |
Gets the supported item categories.
| 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 | ) |