Share via


IHttpResponseStreamWriterFactory.CreateWriter(Stream, Encoding) Method

Definition

Creates a new TextWriter.

public:
 System::IO::TextWriter ^ CreateWriter(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding);
public System.IO.TextWriter CreateWriter (System.IO.Stream stream, System.Text.Encoding encoding);
abstract member CreateWriter : System.IO.Stream * System.Text.Encoding -> System.IO.TextWriter
Public Function CreateWriter (stream As Stream, encoding As Encoding) As TextWriter

Parameters

stream
Stream

The Stream, usually Body.

encoding
Encoding

The Encoding, usually UTF8.

Returns

A TextWriter.

Applies to