Table of Contents

Class ODataRawValueMediaTypeMapping

Namespace
System.Web.Http.OData.Formatter
Assembly
System.Web.Http.OData.dll

Media type mapping that associates requests for the raw value of properties.

public abstract class ODataRawValueMediaTypeMapping : MediaTypeMapping
Inheritance
ODataRawValueMediaTypeMapping
Derived

Constructors

ODataRawValueMediaTypeMapping(string)

Initializes a new instance of the ODataRawValueMediaTypeMapping class.

protected ODataRawValueMediaTypeMapping(string mediaType)

Parameters

mediaType string

Methods

IsMatch(PropertyAccessPathSegment)

This method determines if the HttpRequestMessage is an OData Raw value request.

protected abstract bool IsMatch(PropertyAccessPathSegment propertySegment)

Parameters

propertySegment PropertyAccessPathSegment

The PropertyAccessPathSegment of the path.

Returns

bool

True if the request is an OData raw value request.

TryMatchMediaType(HttpRequestMessage)

public override double TryMatchMediaType(HttpRequestMessage request)

Parameters

request HttpRequestMessage

Returns

double