共用方式為


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

Stream 通常是 Body

encoding
Encoding

Encoding 通常是 UTF8

傳回

TextWriter

適用於