Compartir a través de


OutputFormatterWriteContext Constructor

Definición

public:
 OutputFormatterWriteContext(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Func<System::IO::Stream ^, System::Text::Encoding ^, System::IO::TextWriter ^> ^ writerFactory, Type ^ objectType, System::Object ^ object);
public OutputFormatterWriteContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Func<System.IO.Stream,System.Text.Encoding,System.IO.TextWriter> writerFactory, Type objectType, object object);
public OutputFormatterWriteContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Func<System.IO.Stream,System.Text.Encoding,System.IO.TextWriter> writerFactory, Type? objectType, object? object);
new Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext : Microsoft.AspNetCore.Http.HttpContext * Func<System.IO.Stream, System.Text.Encoding, System.IO.TextWriter> * Type * obj -> Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext
Public Sub New (httpContext As HttpContext, writerFactory As Func(Of Stream, Encoding, TextWriter), objectType As Type, object As Object)

Parámetros

httpContext
HttpContext

Objeto HttpContext de la solicitud actual.

writerFactory
Func<Stream,Encoding,TextWriter>

Delegado usado para crear un TextWriter objeto para escribir la respuesta.

objectType
Type

del Type objeto que se va a escribir en la respuesta.

object
Object

Objeto que se va a escribir en la respuesta.

Se aplica a