MimeReader.TryGetContentReadStream Method

The TryGetContentReadStream method gets a stream that contains the content of the current part body.

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

Syntax

'Declaration
Public Function TryGetContentReadStream ( _
    <OutAttribute> ByRef result As Stream _
) As Boolean
public bool TryGetContentReadStream (
    out Stream result
)
public:
bool TryGetContentReadStream (
    [OutAttribute] Stream^% result
)
public boolean TryGetContentReadStream (
    /** @attribute OutAttribute() */ /** @ref */ Stream result
)
JScript does not support passing value-type arguments by reference.

Parameters

  • result
    The stream that contains the returned content.

Return Value

The TryGetContentReadStream method returns true if it successfully decoded the MIME content into result. If the content is empty, its encoding is unsupported, or it cannot be decoded for any other reason, the TryGetContentReadStream method returns false.

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.

Platforms

Development Platforms

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

Target Platforms

Windows Server 2003