Compartir a través de


MimeDocument Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class MimeDocument _
    Implements IDisposable
'Usage
Dim instance As MimeDocument
public class MimeDocument : IDisposable

Remarks

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.

Thread Safety

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