Dela via


OutputFormatterCanWriteContext Class

Definition

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

Constructors

OutputFormatterCanWriteContext()
Obsolete.

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

Creates a new OutputFormatterCanWriteContext.

OutputFormatterCanWriteContext(HttpContext)

Creates a new OutputFormatterCanWriteContext.

Properties

ContentType

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

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

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

Object

Gets or sets the object to write to the response.

ObjectType

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

Applies to