Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ODataMediaTypeFormatter Class

 

MediaTypeFormatter class to handle OData.

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

System::Object
  System.Net.Http.Formatting::MediaTypeFormatter
    System.Web.Http.OData.Formatter::ODataMediaTypeFormatter

public ref class ODataMediaTypeFormatter : MediaTypeFormatter

NameDescription
System_CAPS_pubmethodODataMediaTypeFormatter(IEnumerable<ODataPayloadKind>^)

Initializes a new instance of the ODataMediaTypeFormatter class.

System_CAPS_pubmethodODataMediaTypeFormatter(ODataDeserializerProvider^, ODataSerializerProvider^, IEnumerable<ODataPayloadKind>^)

Initializes a new instance of the ODataMediaTypeFormatter class.

NameDescription
System_CAPS_pubpropertyDeserializerProvider

Gets the ODataDeserializerProvider that will be used by this formatter instance.

System_CAPS_pubpropertyMediaTypeMappings

Gets the mutable collection of MediaTypeMapping objects that match HTTP requests to media types.(Inherited from MediaTypeFormatter.)

System_CAPS_pubpropertyMessageReaderQuotas

Gets the ODataMessageQuotas that this formatter uses on the read side.

System_CAPS_pubpropertyMessageReaderSettings

Gets the ODataMessageReaderSettings to be used while reading requests.

System_CAPS_pubpropertyMessageWriterQuotas

Gets the ODataMessageQuotas that this formatter uses on the write side.

System_CAPS_pubpropertyMessageWriterSettings

Gets the ODataMessageWriterSettings to be used while writing responses.

System_CAPS_pubpropertyRequiredMemberSelector

Gets or sets the IRequiredMemberSelector instance used to determine required members.(Inherited from MediaTypeFormatter.)

System_CAPS_pubpropertySerializerProvider

Gets the ODataSerializerProvider that will be used by this formatter instance.

System_CAPS_pubpropertySupportedEncodings

Gets the mutable collection of character encodings supported bythis MediaTypeFormatter.(Inherited from MediaTypeFormatter.)

System_CAPS_pubpropertySupportedMediaTypes

Gets the mutable collection of media types supported bythis MediaTypeFormatter.(Inherited from MediaTypeFormatter.)

NameDescription
System_CAPS_pubmethodCanReadType(Type^)
System_CAPS_pubmethodCanWriteType(Type^)
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetPerRequestFormatterInstance(Type^, HttpRequestMessage^, MediaTypeHeaderValue^)
System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodReadFromStreamAsync(Type^, Stream^, HttpContent^, IFormatterLogger^)
System_CAPS_pubmethodReadFromStreamAsync(Type^, Stream^, HttpContent^, IFormatterLogger^, CancellationToken)

Asynchronously deserializes an object of the specified type.(Inherited from MediaTypeFormatter.)

System_CAPS_pubmethodSelectCharacterEncoding(HttpContentHeaders^)

Determines the best character encoding for reading or writing an HTTP entity body, given a set of content headers.(Inherited from MediaTypeFormatter.)

System_CAPS_pubmethodSetDefaultContentHeaders(Type^, HttpContentHeaders^, MediaTypeHeaderValue^)
System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodWriteToStreamAsync(Type^, Object^, Stream^, HttpContent^, TransportContext^)

Asynchronously writes an object of the specified type.(Inherited from MediaTypeFormatter.)

System_CAPS_pubmethodWriteToStreamAsync(Type^, Object^, Stream^, HttpContent^, TransportContext^, CancellationToken)

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

Return to top
Show: