Share via


ODataOutputFormatter Class

Definition

TextOutputFormatter class to handle OData.

public class ODataOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter
type ODataOutputFormatter = class
    inherit TextOutputFormatter
Public Class ODataOutputFormatter
Inherits TextOutputFormatter
Inheritance
ODataOutputFormatter

Constructors

ODataOutputFormatter(IEnumerable<ODataPayloadKind>)

Initializes a new instance of the ODataOutputFormatter class.

Properties

BaseAddressFactory

Gets or sets a method that allows consumers to provide an alternate base address for OData Uri.

MediaTypeMappings

Gets a collection of MediaTypeMapping objects.

Methods

CanWriteResult(OutputFormatterCanWriteContext) Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter.CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext)
GetDefaultBaseAddress(HttpRequest)

Returns a base address to be used in the service root when reading or writing OData uris.

WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

Writes the response body.

WriteResponseHeaders(OutputFormatterWriteContext) Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter.WriteResponseHeaders(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext)

Applies to