OutputFormatterWriteContext Konstruktor

Definition

Erstellt einen neuen OutputFormatterWriteContext.

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)

Parameter

httpContext
HttpContext

Das HttpContext für die aktuelle Anforderung.

writerFactory
Func<Stream,Encoding,TextWriter>

Der Delegat, der zum Erstellen eines TextWriter zum Schreiben der Antwort verwendet wird.

objectType
Type

Der Type des -Objekts, das in die Antwort geschrieben werden soll.

object
Object

Das Objekt, das in die Antwort geschrieben werden soll.

Gilt für: