Share via


TextConverter.Convert method

The Convert overload converts the entire contents of an input Stream or TextReader object to another format and either stores the results in an output Stream object or writes the results to a TextWriter.

Overload list

  Name Description
Public method Convert(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.
Public method Convert(Stream, TextWriter) The Convert method converts the entire contents of sourceStream from its format to the format of destinationWriter and writes the result to destinationWriter.
Public method Convert(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.
Public method Convert(TextReader, TextWriter) The Convert method converts the entire contents of sourceReader from its format to the format of destinationWriter and writes the result to destinationWriter.

Top

Remarks

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

Microsoft.Exchange.Data.TextConverters namespace