Aspose::Email::Mapi::MapiMessageReader Class Referencefinal

Represents a reader that can read a Microsoft Outlook Message format document. More...

Inherits IDisposable.

Public Member Functions

System::SharedPtr< Aspose::Email::Mapi::StructuredStorage::FileSystem > get_FileSystem () const
 
System::SharedPtr< Aspose::Email::VentureLicense > get_VentureLicense () const
 This is part of the venture licensing pattern. This value will be set by VentureLicenser if the venture passes us a LoadOptions object. More...
 
void set_VentureLicense (System::SharedPtr< Aspose::Email::VentureLicense > value)
 This is part of the venture licensing pattern. This value will be set by VentureLicenser if the venture passes us a LoadOptions object. More...
 
 MapiMessageReader (System::String path)
 Initializes a new instance of the MapiMessageReader class for the specified file name. More...
 
 MapiMessageReader (System::SharedPtr< System::IO::Stream > stream)
 Initializes a new instance of the MapiMessageReader class for the specified stream. More...
 
System::SharedPtr< MapiMessageReadMessage ()
 Parse the current stream and returns the data as a MapiMessage. More...
 
System::SharedPtr< MapiAttachmentCollectionReadAttachments ()
 Extracts the attachment from the Outlook Message files. More...
 
void DestroyAttachments (System::String newPath)
 Destroies the attachments in the specified Outlook Message files More...
 
System::SharedPtr< MapiAttachmentCollectionRemoveAttachments (System::String newPath)
 Removes the attachments from the specified Outlook Message files More...
 
void Dispose () override
 Releases the unmanaged resources used by the MapiMessageReader. More...
 

Friends

class Aspose::Email::MailMessage
 
class Aspose::Email::Mapi::MapiMessage
 

Detailed Description

Represents a reader that can read a Microsoft Outlook Message format document.

Constructor & Destructor Documentation

◆ MapiMessageReader() [1/2]

Aspose::Email::Mapi::MapiMessageReader::MapiMessageReader ( System::String  path)

Initializes a new instance of the MapiMessageReader class for the specified file name.

Parameters
pathThe complete file path to be read.

◆ MapiMessageReader() [2/2]

Aspose::Email::Mapi::MapiMessageReader::MapiMessageReader ( System::SharedPtr< System::IO::Stream >  stream)

Initializes a new instance of the MapiMessageReader class for the specified stream.

Parameters
streamThe stream to be read.

Member Function Documentation

◆ DestroyAttachments()

void Aspose::Email::Mapi::MapiMessageReader::DestroyAttachments ( System::String  newPath)

Destroies the attachments in the specified Outlook Message files

Parameters
newPathThe path for saving

◆ Dispose()

void Aspose::Email::Mapi::MapiMessageReader::Dispose ( )
override

Releases the unmanaged resources used by the MapiMessageReader.

◆ get_FileSystem()

System::SharedPtr<Aspose::Email::Mapi::StructuredStorage::FileSystem> Aspose::Email::Mapi::MapiMessageReader::get_FileSystem ( ) const

◆ get_VentureLicense()

System::SharedPtr<Aspose::Email::VentureLicense> Aspose::Email::Mapi::MapiMessageReader::get_VentureLicense ( ) const

This is part of the venture licensing pattern. This value will be set by VentureLicenser if the venture passes us a LoadOptions object.

◆ ReadAttachments()

System::SharedPtr<MapiAttachmentCollection> Aspose::Email::Mapi::MapiMessageReader::ReadAttachments ( )

Extracts the attachment from the Outlook Message files.

Returns
The Attachment collection.

◆ ReadMessage()

System::SharedPtr<MapiMessage> Aspose::Email::Mapi::MapiMessageReader::ReadMessage ( )

Parse the current stream and returns the data as a MapiMessage.

Returns
The MapiMessage from the input stream.

◆ RemoveAttachments()

System::SharedPtr<MapiAttachmentCollection> Aspose::Email::Mapi::MapiMessageReader::RemoveAttachments ( System::String  newPath)

Removes the attachments from the specified Outlook Message files

Parameters
newPathThe path for saving
Returns
The attachments removed.

◆ set_VentureLicense()

void Aspose::Email::Mapi::MapiMessageReader::set_VentureLicense ( System::SharedPtr< Aspose::Email::VentureLicense >  value)

This is part of the venture licensing pattern. This value will be set by VentureLicenser if the venture passes us a LoadOptions object.

Friends And Related Function Documentation

◆ Aspose::Email::MailMessage

friend class Aspose::Email::MailMessage
friend

◆ Aspose::Email::Mapi::MapiMessage

friend class Aspose::Email::Mapi::MapiMessage
friend