Body.TryGetContentReadStream method

The TryGetContentReadStream method gets a readable stream that contains the contents of the body.

Namespace:  Microsoft.Exchange.Data.Transport.Email
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public Function TryGetContentReadStream ( _
    <OutAttribute> ByRef stream As Stream _
) As Boolean
'Usage
Dim instance As Body
Dim stream As Stream
Dim returnValue As Boolean

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

Parameters

  • stream
    Type: System.IO.Stream

    The stream from which the decoded part of the content can be read.

Return value

Type: System.Boolean

See also

Reference

Body class

Body members

Microsoft.Exchange.Data.Transport.Email namespace