OutputFormatterWriteContext OutputFormatterWriteContext OutputFormatterWriteContext OutputFormatterWriteContext Class

Definition

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
OutputFormatterWriteContextOutputFormatterWriteContextOutputFormatterWriteContextOutputFormatterWriteContext

Constructors

OutputFormatterWriteContext(HttpContext, Func<Stream,Encoding,TextWriter>, Type, Object) OutputFormatterWriteContext(HttpContext, Func<Stream,Encoding,TextWriter>, Type, Object) OutputFormatterWriteContext(HttpContext, Func<Stream,Encoding,TextWriter>, Type, Object) OutputFormatterWriteContext(HttpContext, Func<Stream,Encoding,TextWriter>, Type, Object)

Creates a new OutputFormatterWriteContext.

Properties

ContentType ContentType ContentType ContentType

Gets or sets the content type to write to the response.

(Inherited from OutputFormatterCanWriteContext)
ContentTypeIsServerDefined ContentTypeIsServerDefined ContentTypeIsServerDefined 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 HttpContext HttpContext HttpContext

Gets or sets the HttpContext context associated with the current operation.

Object Object Object Object

Gets or sets the object to write to the response.

(Inherited from OutputFormatterCanWriteContext)
ObjectType ObjectType ObjectType ObjectType

Gets or sets the Type of the object to write to the response.

(Inherited from OutputFormatterCanWriteContext)
WriterFactory WriterFactory WriterFactory 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.

Applies to