MsgSaveOptions
Contents
[
Hide
]MsgSaveOptions class
Inherits: Aspose::Email::SaveOptions
This class allows the user to specify additional settings when saving a MailMessage in the Msg(ASCII) and Msg(Unicode) format.
The following example shows how to save as MSG with preserved dates.
// Initialize and Load an existing EML file by specifying the MessageFormat
var eml = MailMessage.Load("Message.eml");
// Save as msg with preserved dates
var msgSaveOptions = new MsgSaveOptions(MailMessageSaveType.OutlookMessageFormatUnicode)
{
PreserveOriginalDates = true
};
eml.Save("outTest_out.msg", msgSaveOptions);
' Initialize and Load an existing EML file by specifying the MessageFormat
Dim eml = MailMessage.Load("Message.eml")
' Save as msg with preserved dates
Dim msgSaveOptions = New MsgSaveOptions(MailMessageSaveType.OutlookMessageFormatUnicode) With {
.PreserveOriginalDates = True
}
eml.Save("outTest_out.msg", msgSaveOptions)
Constructors
| Name | Description |
|---|---|
| MsgSaveOptions | Initializes a new instance of this class that can be used to save a MailMessage in the Msg(ASCII) and Msg(Unicode) format. |
Methods
| Name | Description |
|---|---|
| get_PreserveOriginalDates | Gets a value indicating whether it is necessary to generate new saving and modification dates when saving a message. By default the value is true, meaning the creation and modification dates will be not set to DateTime.Now. |
| get_PreserveSignature | Set to true, if signature is to be preserved. |
| get_SaveAsTemplate | Set to true, if need to be saved as Outlook File Template(OFT format). |
| set_PreserveOriginalDates | Sets a value indicating whether it is necessary to generate new saving and modification dates when saving a message. By default the value is true, meaning the creation and modification dates will be not set to DateTime.Now. |
| set_PreserveSignature | Set to true, if signature is to be preserved. |
| set_SaveAsTemplate | Set to true, if need to be saved as Outlook File Template(OFT format). |