Share 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
'Usage
Dim instance As MimePart
Dim result As Stream
Dim returnValue As Boolean

returnValue = instance.TryGetContentReadStream(result)
public bool TryGetContentReadStream(
    out Stream result
)

Parameters

Return Value

Type: System.Boolean

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.