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

通常BodyStream

encoding
Encoding

通常UTF8Encoding

返回

TextReader

适用于