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

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

Parameters

Return value

Type: System.Boolean
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.

See also

Reference

MimeReader class

MimeReader members

Microsoft.Exchange.Data.Mime namespace