Partager via


MimePart.TryGetContentReadStream Method

The TryGetContentReadStream method gets a stream that can be used to read the content of this MimePart object.

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
    A stream into which to put the read stream.

Remarks

The stream returned by TryGetContentReadStream will automatically remove the content transfer encoding. If the content transfer encoding is not understood, TryGetContentReadStream returns the raw content.

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