OutputFormatterWriteContext Class
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.
A context object for WriteAsync(OutputFormatterWriteContext).
public ref class OutputFormatterWriteContext : Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterCanWriteContext
public class OutputFormatterWriteContext : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext
type OutputFormatterWriteContext = class
inherit OutputFormatterCanWriteContext
Public Class OutputFormatterWriteContext
Inherits OutputFormatterCanWriteContext
- Inheritance
Constructors
OutputFormatterWriteContext(HttpContext, Func<Stream,Encoding,TextWriter>, Type, Object) |
Creates a new OutputFormatterWriteContext. |
Properties
ContentType |
Gets or sets the content type to write to the response. (Inherited from OutputFormatterCanWriteContext) |
ContentTypeIsServerDefined |
Gets or sets a value to indicate whether the content type was specified by server-side code. This allows CanWriteResult(OutputFormatterCanWriteContext) to implement stricter filtering on content types that, for example, are being considered purely because of an incoming Accept header. (Inherited from OutputFormatterCanWriteContext) |
HttpContext |
Gets or sets the HttpContext context associated with the current operation. |
HttpContext |
Gets or sets the HttpContext context associated with the current operation. (Inherited from OutputFormatterCanWriteContext) |
Object |
Gets or sets the object to write to the response. (Inherited from OutputFormatterCanWriteContext) |
ObjectType |
Gets or sets the Type of the object to write to the response. (Inherited from OutputFormatterCanWriteContext) |
WriterFactory |
Gets or sets a delegate used to create a TextWriter for writing text to the response. Write to Body directly to write binary data to the response. |