ODataPrimitiveValueMediaTypeMapping Class

 

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

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

Inheritance Hierarchy

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

Syntax

public class ODataPrimitiveValueMediaTypeMapping : ODataRawValueMediaTypeMapping
public ref class ODataPrimitiveValueMediaTypeMapping : ODataRawValueMediaTypeMapping
type ODataPrimitiveValueMediaTypeMapping = 
    class
        inherit ODataRawValueMediaTypeMapping
    end
Public Class ODataPrimitiveValueMediaTypeMapping
    Inherits ODataRawValueMediaTypeMapping

Constructors

Name Description
System_CAPS_pubmethod ODataPrimitiveValueMediaTypeMapping()

Initializes a new instance of the ODataPrimitiveValueMediaTypeMapping class.

Properties

Name Description
System_CAPS_pubproperty MediaType

Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod IsMatch(PropertyAccessPathSegment)

(Overrides ODataRawValueMediaTypeMapping.IsMatch(PropertyAccessPathSegment).)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryMatchMediaType(HttpRequestMessage)

(Inherited from ODataRawValueMediaTypeMapping.)

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

System.Web.Http.OData.Formatter Namespace

Return to top