Export (0) Print
Expand All

TextConverter.Convert method (TextReader, Stream)

The Convert method converts the entire contents of sourceReader from its format to the format of destinationStream and stores the result in destinationStream.

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

public void Convert(
	TextReader sourceReader,
	Stream destinationStream
)

Parameters

sourceReader
Type: System.IO.TextReader

The TextReader object that reads the data to convert.

destinationStream
Type: System.IO.Stream

The Stream object in which to store the converted data.

After finishing the conversion, the Convert method flushes destinationStream but does not close sourceReader 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.

Show:
© 2014 Microsoft