Partager via


OutputFormatterWriteContext Constructeur

Définition

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)

Paramètres

httpContext
HttpContext

HttpContext pour la requête actuelle.

writerFactory
Func<Stream,Encoding,TextWriter>

Délégué utilisé pour créer un TextWriter pour écrire la réponse.

objectType
Type

Type de l’objet à écrire dans la réponse.

object
Object

Objet à écrire dans la réponse.

S’applique à