共用方式為


IHttpRequestStreamReaderFactory.CreateReader(Stream, Encoding) 方法

定義

建立新的 TextReader

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

參數

stream
Stream

Stream 通常是 Body

encoding
Encoding

Encoding 通常是 UTF8

傳回

TextReader

適用於