IHttpRequestStreamReaderFactory.CreateReader(Stream, Encoding) Method

Definition

Creates a new 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

Parameters

stream
Stream

The Stream, usually Body.

encoding
Encoding

The Encoding, usually UTF8.

Returns

A TextReader.

Applies to