Share via


ODataPrimitiveValueMediaTypeMapping Class

Media type mapping that associates requests for the raw value of non-binary primitive properties to the text/plain content type.

Inheritance Hierarchy

System.Object
  System.Net.Http.Formatting.MediaTypeMapping
    System.Web.Http.OData.Formatter.ODataRawValueMediaTypeMapping
      System.Web.Http.OData.Formatter.ODataPrimitiveValueMediaTypeMapping

Namespace:  System.Web.Http.OData.Formatter
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Class ODataPrimitiveValueMediaTypeMapping _
    Inherits ODataRawValueMediaTypeMapping
'Usage
Dim instance As ODataPrimitiveValueMediaTypeMapping
public class ODataPrimitiveValueMediaTypeMapping : ODataRawValueMediaTypeMapping
public ref class ODataPrimitiveValueMediaTypeMapping : public ODataRawValueMediaTypeMapping
type ODataPrimitiveValueMediaTypeMapping =  
    class 
        inherit ODataRawValueMediaTypeMapping 
    end
public class ODataPrimitiveValueMediaTypeMapping extends ODataRawValueMediaTypeMapping

The ODataPrimitiveValueMediaTypeMapping type exposes the following members.

Constructors

  Name Description
Public method ODataPrimitiveValueMediaTypeMapping Initializes a new instance of the ODataPrimitiveValueMediaTypeMapping class.

Top

Properties

  Name Description
Public property MediaType (Inherited from MediaTypeMapping.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method IsMatch Determines whether the request is an OData primitive value request. (Overrides ODataRawValueMediaTypeMapping.IsMatch(PropertyAccessPathSegment).)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method TryMatchMediaType Returns the quality of the match of the MediaTypeHeaderValue associated with request. (Inherited from ODataRawValueMediaTypeMapping.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.OData.Formatter Namespace