Share 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 _
)
'Usage
Dim mime As Stream
Dim inferMime As Boolean
Dim decodingOptions As DecodingOptions
Dim mimeLimits As MimeLimits

Dim instance As New MimeReader(mime, inferMime, _
    decodingOptions, mimeLimits)
public MimeReader(
    Stream mime,
    bool inferMime,
    DecodingOptions decodingOptions,
    MimeLimits mimeLimits
)

Parameters

  • inferMime
    Type: System.Boolean

    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.

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.

See also

Reference

MimeReader class

MimeReader members

MimeReader overload

Microsoft.Exchange.Data.Mime namespace