Partager via


MimeReader Constructor (Stream, Boolean, DecodingOptions, MimeLimits)

The MimeReader constructor creates a new MimeReader object.

Namespace: Microsoft.Exchange.Data.Mime
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)

Syntax

'Declaration
Public Sub New ( _
    mime As Stream, _
    inferMime As Boolean, _
    decodingOptions As DecodingOptions, _
    mimeLimits As MimeLimits _
)
public MimeReader (
    Stream mime,
    bool inferMime,
    DecodingOptions decodingOptions,
    MimeLimits mimeLimits
)
public:
MimeReader (
    Stream^ mime, 
    bool inferMime, 
    DecodingOptions decodingOptions, 
    MimeLimits^ mimeLimits
)
public MimeReader (
    Stream mime, 
    boolean inferMime, 
    DecodingOptions decodingOptions, 
    MimeLimits mimeLimits
)
public function MimeReader (
    mime : Stream, 
    inferMime : boolean, 
    decodingOptions : DecodingOptions, 
    mimeLimits : MimeLimits
)

Parameters

  • mime
    A stream that contains MIME data.
  • inferMime
    If there is a missing MIME-Version header, inferMime indicates whether this MimeReader object will infer the presence of MIME content from the presence of a Content-Type or Content-Transfer-Encoding header. See Remarks.
  • decodingOptions
    A DecodingOptions structure that is used to control the decoding.
  • mimeLimits
    A MimeLimits structure that determines the allowed complexity of incoming MIME documents.

Remarks

Because RFC822 content is a strict subset of RFC2045 (MIME) content, MimeReader objects can read RFC822 content in addition to MIME content. When an incorrectly formatted MIME message lacks the MIME-Version header and the inferMime argument is set to true, the MimeReader object assumes that the incoming content is MIME compliant. If the inferMime argument is set to false, the resulting MimeReader object assumes that RFC822 content is present instead.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003