Share via


ODataEnumValueMediaTypeMapping Class

Definition

Media type mapping that associates requests for the raw value of enum properties with the text/plain content type.

public class ODataEnumValueMediaTypeMapping : Microsoft.AspNet.OData.Formatter.ODataRawValueMediaTypeMapping
type ODataEnumValueMediaTypeMapping = class
    inherit ODataRawValueMediaTypeMapping
Public Class ODataEnumValueMediaTypeMapping
Inherits ODataRawValueMediaTypeMapping
Inheritance
System.Net.Http.Formatting.MediaTypeMapping
ODataEnumValueMediaTypeMapping
Inheritance
ODataEnumValueMediaTypeMapping

Constructors

ODataEnumValueMediaTypeMapping()

Initializes a new instance of the ODataEnumValueMediaTypeMapping class.

Properties

MediaType

Gets the media type that is associated with request.

(Inherited from MediaTypeMapping)

Methods

IsMatch(PropertySegment)

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

TryMatchMediaType(HttpRequest)

Returns a value indicating whether this instance can provide a MediaTypeHeaderValue for the given request.

(Inherited from ODataRawValueMediaTypeMapping)
TryMatchMediaType(HttpRequestMessage) (Inherited from ODataRawValueMediaTypeMapping)

Applies to