Class SaveOptions
Contents
[
Hide
]SaveOptions class
Serves as the abstract base class for format-specific options when saving MailMessage to various email formats (EML, EMLX, MSG, MHTML, HTML, etc.). This class provides common configuration properties such as custom progress handlers and save type configuration.
public abstract class SaveOptions
Properties
| Name | Description |
|---|---|
| CustomProgressHandler { get; set; } | Represents method that usually supplied by calling side and handles progress events. |
| MailMessageSaveType { get; set; } | Represents the mail message save type.It can be in eml,msg(ASCII or Unicode),mhtml or html format. The default value is Eml. |
| static DefaultEml { get; } | Gets options with default values for saving message to Eml format. |
| static DefaultEmlx { get; } | Gets options with default values for saving message to Emlx format. |
| static DefaultHtml { get; } | Gets options with default values for saving message to Html format. |
| static DefaultMhtml { get; } | Gets options with default values for saving message to Mhtml format. |
| static DefaultMsg { get; } | Gets options with default values for saving message to Msg(ASCII) format. |
| static DefaultMsgUnicode { get; } | Gets options with default values for saving message to Msg(Unicode) format. |
| static DefaultOft { get; } | Gets options with default values for saving message to Outlook template (Oft) format. |
Methods
| Name | Description |
|---|---|
| static CreateSaveOptions(MailMessageSaveType) | Creates a save options object of a class suitable for the specified save type. |
Remarks
This class is designed to be inherited by concrete format-specific classes like EmlSaveOptions, MsgSaveOptions, HtmlSaveOptions, and MhtSaveOptions. Do not instantiate this class directly. Use the format-specific subclasses or the static factory methods like DefaultEml, DefaultMsg, DefaultHtml, etc.
See Also
- namespace Aspose.Email
- assembly Aspose.Email