Body.GetContentReadStreamOrNull method

Gets a readable stream that contains the contents of the body without content transfer encoding. Returns a null reference (Nothing in Visual Basic) if the value of the BodyFormat property is None.

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

Syntax

'Declaration
Public Function GetContentReadStreamOrNull As Stream
'Usage
Dim instance As Body
Dim returnValue As Stream

returnValue = instance.GetContentReadStreamOrNull()
public Stream GetContentReadStreamOrNull()

Return value

Type: System.IO.Stream
A readable stream containing the body text, or a null reference (Nothing in Visual Basic).

See also

Reference

Body class

Body members

Microsoft.Exchange.Data.Transport.Email namespace