TextConverter.Convert method (Stream, Stream)

The Convert method converts the entire contents of sourceStream from its format to the format specified by this TextConverter object and stores the result in destinationStream.

Namespace:  Microsoft.Exchange.Data.TextConverters
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

Syntax

'Declaration
Public Sub Convert ( _
    sourceStream As Stream, _
    destinationStream As Stream _
)
'Usage
Dim instance As TextConverter
Dim sourceStream As Stream
Dim destinationStream As Stream

instance.Convert(sourceStream, destinationStream)
public void Convert(
    Stream sourceStream,
    Stream destinationStream
)

Parameters

  • sourceStream
    Type: System.IO.Stream

    The stream that contains the data to convert.

  • destinationStream
    Type: System.IO.Stream

    The stream in which to store the conversion.

Remarks

After finishing the conversion, the Convert method flushes destinationStream but does not close sourceStream or destinationStream.

The Convert method is overridden in the conversions that derive from it to perform a particular conversion. For example, the RtfToHtml object uses its overridden Convert method to convert input Rich Text Format (RTF) into output HTML.

See also

Reference

TextConverter class

TextConverter members

Convert overload

Microsoft.Exchange.Data.TextConverters namespace