OutputFormatterWriteContext Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new 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)
Parameters
- httpContext
- HttpContext
The HttpContext for the current request.
- writerFactory
- Func<Stream,Encoding,TextWriter>
The delegate used to create a TextWriter for writing the response.
- object
- Object
The object to write to the response.