IBufferedTextWriter Interface

Summary

Specifies the contracts for a [System.IO.TextWriter]() that buffers its content.

Syntax

public interface IBufferedTextWriter

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.Razor.IBufferedTextWriter

Properties

IsBuffering()

Gets a flag that determines if content is currently being buffered.

Return type:System.Boolean
bool IsBuffering { get; }

Methods

CopyTo(System.IO.TextWriter)

Copies the buffered content to the <paramref name=”writer” />.

Arguments:
  • writer (System.IO.TextWriter) – The writer to copy the contents to.
void CopyTo(TextWriter writer)
CopyToAsync(System.IO.TextWriter)

Asynchronously copies the buffered content to the <paramref name=”writer” />.

Arguments:
  • writer (System.IO.TextWriter) – The writer to copy the contents to.
Return type:

System.Threading.Tasks.Task

Returns:

A [System.Threading.Tasks.Task]() representing the copy operation.

Task CopyToAsync(TextWriter writer)