Media type mapping that associates requests for the raw value of non-binary primitive properties to the text/plain content type.
Namespace:   System.Web.OData.Formatter
Assembly:  System.Web.OData (in System.Web.OData.dll)
Inheritance Hierarchy
System.Object
  System.Net.Http.Formatting.MediaTypeMapping
    System.Web.OData.Formatter.ODataRawValueMediaTypeMapping
      System.Web.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 | |
|---|---|---|
| .jpeg) | ODataPrimitiveValueMediaTypeMapping() | Initializes a new instance of the ODataPrimitiveValueMediaTypeMapping class. | 
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | 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 | |
|---|---|---|
| .jpeg) | Equals(Object) | (Inherited from Object.) | 
| .jpeg) | Finalize() | (Inherited from Object.) | 
| .jpeg) | GetHashCode() | (Inherited from Object.) | 
| .jpeg) | GetType() | (Inherited from Object.) | 
| .jpeg) | IsMatch(PropertyAccessPathSegment) | (Overrides ODataRawValueMediaTypeMapping.IsMatch(PropertyAccessPathSegment).) | 
| .jpeg) | MemberwiseClone() | (Inherited from Object.) | 
| .jpeg) | ToString() | (Inherited from Object.) | 
| .jpeg) | 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.OData.Formatter Namespace
Return to top