OutputFormatterCanWriteContext OutputFormatterCanWriteContext OutputFormatterCanWriteContext OutputFormatterCanWriteContext Class

Definition

public ref class OutputFormatterCanWriteContext abstract
public abstract class OutputFormatterCanWriteContext
type OutputFormatterCanWriteContext = class
Public MustInherit Class OutputFormatterCanWriteContext
Inheritance
OutputFormatterCanWriteContextOutputFormatterCanWriteContextOutputFormatterCanWriteContextOutputFormatterCanWriteContext
Derived

Constructors

OutputFormatterCanWriteContext() OutputFormatterCanWriteContext() OutputFormatterCanWriteContext() OutputFormatterCanWriteContext()

This constructor is obsolete and will be removed in a future version. Please use OutputFormatterCanWriteContext(HttpContext) instead.

Creates a new OutputFormatterCanWriteContext.

OutputFormatterCanWriteContext(HttpContext) OutputFormatterCanWriteContext(HttpContext) OutputFormatterCanWriteContext(HttpContext) OutputFormatterCanWriteContext(HttpContext)

Creates a new OutputFormatterCanWriteContext.

Properties

ContentType ContentType ContentType ContentType

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

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.

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.

ObjectType ObjectType ObjectType ObjectType

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

Applies to