IHttpResponseStreamWriterFactory.CreateWriter(Stream, Encoding) 方法

定义

创建一个新的 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

参数

stream
Stream

通常BodyStream

encoding
Encoding

通常UTF8Encoding

返回

TextWriter

适用于