Class LoadOptions

LoadOptions class

Serves as the abstract base class for format-specific options when loading MailMessage from various email formats (EML, EMLX, HTML, MHTML, etc.). This class provides common configuration properties such as text encoding, embedded message format preservation, and signature handling.

public abstract class LoadOptions

Properties

NameDescription
MessageFormat { get; }Gets the format this options object loads, as determined by its class: EML, MSG, MHTML, HTML and so on.
PreferredTextEncoding { get; set; }Gets or sets the encoding used for the subject and the body regardless of what the message declares. The default is null: the declared encoding is used.
PreserveEmbeddedMessageFormat { get; set; }Gets or sets a value indicating whether embedded messages keep their original format (EML or MSG) when loaded. The default is false.
RemoveSignature { get; set; }Gets or sets a value indicating whether the digital signature is removed from a signed message while it is loaded.

Remarks

This class is designed to be inherited by concrete format-specific classes like EmlLoadOptions, EmlxLoadOptions, and HtmlLoadOptions. Do not instantiate this class directly. Use the format-specific subclasses to access format-specific loading options.

See Also