Represents an Outlook message object. Evaluation limits: only 1 attachment and 1 recipient are read when message is being loaded, watermark will be added when the message is being saved. More...
Inherits Aspose::Email::Mapi::Msg::IMessageObjectPropertyContainer.
Public Member Functions | |
System::SharedPtr< MessageObjectPropertiesCollection > | get_Properties () override |
Gets the properties of the MessageObject. More... | |
int32_t | get_Codepage () |
Gets the codepage used to encode/decode string properties in case MapiType::PT_STRING8 type for them is used. More... | |
System::SharedPtr< MessageObjectRecipientsCollection > | get_Recipients () const |
Gets the recipients of the MessageObject. More... | |
System::SharedPtr< MessageObjectAttachmentsCollection > | get_Attachments () const |
Gets the attachments of the MessageObject. More... | |
MessageObject (System::SharedPtr< MessageObjectPropertiesCollection > properties, System::SharedPtr< MessageObjectRecipientsCollection > recipients, System::SharedPtr< MessageObjectAttachmentsCollection > attachments) | |
Initializes a new instance of the MessageObject class, used internally for embedded messages. More... | |
MessageObject (System::SharedPtr< System::IO::Stream > stream, MessageObjectLoadFormat loadFormat) | |
Initializes a new instance of the MessageObject class. More... | |
MessageObject (System::String fileName, MessageObjectLoadFormat loadFormat) | |
Initializes a new instance of the MessageObject class. More... | |
void | Save (System::String fileName, MessageObjectSaveFormat format) |
Saves the current message object to the specified file. More... | |
void | Save (System::SharedPtr< System::IO::Stream > stream, MessageObjectSaveFormat format) |
Saves the current message object to the specified stream. More... | |
int32_t | GetIdForNamedProperty () |
Gets the id to be used for named property, named properties are special properties and should have their ids in range [0x8000,0xfffe] aligned starting from 0x8000 sequentally. Use this method to find the available id cause it could be hard to calculate it yourself. More... | |
Protected Member Functions | |
virtual | ~MessageObject () |
Friends | |
class | Aspose::Email::Mapi::Msg::CFB::MessageObjectCFBReader |
class | Aspose::Email::Storage::Pst::PstDoer |
Represents an Outlook message object. Evaluation limits: only 1 attachment and 1 recipient are read when message is being loaded, watermark will be added when the message is being saved.
Aspose::Email::Mapi::Msg::MessageObject::MessageObject | ( | System::SharedPtr< MessageObjectPropertiesCollection > | properties, |
System::SharedPtr< MessageObjectRecipientsCollection > | recipients, | ||
System::SharedPtr< MessageObjectAttachmentsCollection > | attachments | ||
) |
Initializes a new instance of the MessageObject class, used internally for embedded messages.
properties | The properties list. |
recipients | The recipients list. |
attachments | The attachments list. |
Aspose::Email::Mapi::Msg::MessageObject::MessageObject | ( | System::SharedPtr< System::IO::Stream > | stream, |
MessageObjectLoadFormat | loadFormat | ||
) |
Initializes a new instance of the MessageObject class.
stream | The stream to initialize this object from. |
loadFormat | The source format message object is stored with. |
ArgumentNullException | If given stream is null. |
ArgumentOutOfRangeException | If specified loadFormat is not supported. |
Aspose::Email::Mapi::Msg::MessageObject::MessageObject | ( | System::String | fileName, |
MessageObjectLoadFormat | loadFormat | ||
) |
Initializes a new instance of the MessageObject class.
fileName | Name of the file to read from. |
loadFormat | The source format message object is stored with. |
ArgumentOutOfRangeException | If specified loadFormat is not supported. |
In addition same set of exceptions could be thrown as for the File::Open(string,System::IO::FileMode) call.
|
protectedvirtual |
System::SharedPtr<MessageObjectAttachmentsCollection> Aspose::Email::Mapi::Msg::MessageObject::get_Attachments | ( | ) | const |
Gets the attachments of the MessageObject.
The attachments.
int32_t Aspose::Email::Mapi::Msg::MessageObject::get_Codepage | ( | ) |
Gets the codepage used to encode/decode string properties in case MapiType::PT_STRING8 type for them is used.
The codepage.
|
overridevirtual |
Gets the properties of the MessageObject.
The properties.
Implements Aspose::Email::Mapi::Msg::IMessageObjectPropertyContainer.
System::SharedPtr<MessageObjectRecipientsCollection> Aspose::Email::Mapi::Msg::MessageObject::get_Recipients | ( | ) | const |
Gets the recipients of the MessageObject.
The recipients.
int32_t Aspose::Email::Mapi::Msg::MessageObject::GetIdForNamedProperty | ( | ) |
Gets the id to be used for named property, named properties are special properties and should have their ids in range [0x8000,0xfffe] aligned starting from 0x8000 sequentally. Use this method to find the available id cause it could be hard to calculate it yourself.
void Aspose::Email::Mapi::Msg::MessageObject::Save | ( | System::SharedPtr< System::IO::Stream > | stream, |
MessageObjectSaveFormat | format | ||
) |
Saves the current message object to the specified stream.
stream | The stream to write to. |
format | The format of the output data. |
ArgumentNullException | If stream is null. |
ArgumentOutOfRangeException | If format value is not valid. |
void Aspose::Email::Mapi::Msg::MessageObject::Save | ( | System::String | fileName, |
MessageObjectSaveFormat | format | ||
) |
Saves the current message object to the specified file.
fileName | Name of the file. |
format | The format of the output data. |
ArgumentOutOfRangeException | If format value is not valid. |
In addition same set of exceptions could be thrown as for the File::OpenWrite call.
|
friend |
|
friend |