Delen via


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
OutputFormatterWriteContext

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.

Applies to