SharpMimeTools Documented Class Library

SharpMessage Constructor (Stream, MimeTopLevelMediaType, SharpDecodeOptions, String, String)

[This is preliminary documentation and subject to change.]

Initializes a new instance of the SharpMessage class based on the supplied Stream.

public SharpMessage(
   Stream message,
   MimeTopLevelMediaType types,
   SharpDecodeOptions options,
   string path,
   string preferredtextsubtype
);

Parameters

message
Stream that contains the message content
types
A MimeTopLevelMediaType value that specifies the allowed Mime-Types to being decoded.
options
SharpDecodeOptions to determine how to do the decoding (must be combined as a bit map).
path
A String specifying the path on which to save the attachments found.
preferredtextsubtype
A String specifying the subtype to select for text parts that contain aternative content (plain, html, ...). Specify the null reference to maintain the default behavior (prefer whatever the originator sent as the preferred part). If there is not a text part with this subtype, the default one is used.

See Also

SharpMessage Class | anmar.SharpMimeTools Namespace | SharpMessage Constructor Overload List