HttpResponseStreamWriter Třída

Definice

Zapíše se do odpovědi HTTP pomocí zadaného Encodingpříkazu Stream . Nezapisuje bom a také nezavírá stream.

public ref class HttpResponseStreamWriter : System::IO::TextWriter
public class HttpResponseStreamWriter : System.IO.TextWriter
type HttpResponseStreamWriter = class
    inherit TextWriter
Public Class HttpResponseStreamWriter
Inherits TextWriter
Dědičnost
HttpResponseStreamWriter

Konstruktory

HttpResponseStreamWriter(Stream, Encoding)

Inicializuje novou instanci .HttpResponseStreamWriter

HttpResponseStreamWriter(Stream, Encoding, Int32)

Inicializuje novou instanci .HttpResponseStreamWriter

HttpResponseStreamWriter(Stream, Encoding, Int32, ArrayPool<Byte>, ArrayPool<Char>)

Inicializuje novou instanci .HttpResponseStreamWriter

Pole

DefaultBufferSize

Výchozí velikost vyrovnávací paměti

Vlastnosti

Encoding

When overridden in a derived class, returns the character encoding in which the output is written.

Metody

Dispose(Boolean)

Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources.

DisposeAsync()

Asynchronously releases all resources used by the TextWriter object.

Flush()

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

FlushAsync()

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

Write(Char)

Writes a character to the text stream.

Write(Char[], Int32, Int32)

Writes a subarray of characters to the text stream.

Write(ReadOnlySpan<Char>)

Writes a character span to the text stream.

Write(String)

Writes a string to the text stream.

WriteAsync(Char)

Writes a character to the text stream asynchronously.

WriteAsync(Char[], Int32, Int32)

Writes a subarray of characters to the text stream asynchronously.

WriteAsync(ReadOnlyMemory<Char>, CancellationToken)

Asynchronously writes a character memory region to the text stream.

WriteAsync(String)

Writes a string to the text stream asynchronously.

WriteLine(ReadOnlySpan<Char>)

Writes the text representation of a character span to the text stream, followed by a line terminator.

WriteLineAsync(Char)

Asynchronously writes a character to the text stream, followed by a line terminator.

WriteLineAsync(Char[], Int32, Int32)

Asynchronously writes a subarray of characters to the text stream, followed by a line terminator.

WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken)

Asynchronously writes the text representation of a character memory region to the text stream, followed by a line terminator.

WriteLineAsync(String)

Asynchronously writes a string to the text stream, followed by a line terminator.

Platí pro