Class SaveOptions

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

NameDescription
CustomProgressHandler { get; set; }Gets or sets a handler that is called as the saving progresses.
MailMessageSaveType { get; set; }Gets or sets the format the options save to.
static DefaultEml { get; }Gets new options with the default settings for saving to EML.
static DefaultEmlx { get; }Gets new options with the default settings for saving to EMLX.
static DefaultHtml { get; }Gets new options with the default settings for saving to HTML.
static DefaultMhtml { get; }Gets new options with the default settings for saving to MHTML.
static DefaultMsg { get; }Gets new options with the default settings for saving to MSG with ANSI strings.
static DefaultMsgUnicode { get; }Gets new options with the default settings for saving to MSG with Unicode strings.
static DefaultOft { get; }Gets new options with the default settings for saving to Outlook template (OFT).

Methods

NameDescription
static CreateSaveOptions(MailMessageSaveType)Creates save options of the class that matches the specified format.

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