Export (0) Print
Expand All

MimeDocument Class

The MimeDocument class represents a Multipurpose Internet Mail Extensions (MIME) document.

System.Object
  Microsoft.Exchange.Data.Mime.MimeDocument

Namespace:  Microsoft.Exchange.Data.Mime
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

public class MimeDocument : IDisposable

This class implements a MIME RFC 2822-compliant parser and holds the resulting Document Object Model (DOM). The MimeDocument object contains an in-memory tree representation of a MIME document and enables the navigation and editing of this document.

You can load MIME data into a MimeDocument object by using a source stream to call the instance Load method or by writing to the MIME stream returned by the GetLoadStream method. Loading the MIME data into a MimeDocument object by using the Load method creates a fully-formed DOM that can be navigated and modified. Writing the MIME data into the stream that is returned by the GetLoadStream method allows you to dynamically parse and load MIME data as it arrives from the source.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft