Dela via


TextConverter.Convert Method (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.

Namespace: Microsoft.Exchange.Data.TextConverters
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)

Syntax

'Declaration
Public Sub Convert ( _
    sourceReader As TextReader, _
    destinationWriter As TextWriter _
)
public void Convert (
    TextReader sourceReader,
    TextWriter destinationWriter
)
public:
void Convert (
    TextReader^ sourceReader, 
    TextWriter^ destinationWriter
)
public void Convert (
    TextReader sourceReader, 
    TextWriter destinationWriter
)
public function Convert (
    sourceReader : TextReader, 
    destinationWriter : TextWriter
)

Parameters

  • sourceReader
    The TextReader object that reads the data to convert.
  • destinationWriter
    The destination TextWriter object in which to write the converted data.

Remarks

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003