ODataMediaTypeFormatter Class
MediaTypeFormatter class to handle OData.
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.MediaTypeFormatter
System.Web.Http.OData.Formatter.ODataMediaTypeFormatter
Syntax
public class ODataMediaTypeFormatter : MediaTypeFormatter
public ref class ODataMediaTypeFormatter : MediaTypeFormatter
type ODataMediaTypeFormatter =
class
inherit MediaTypeFormatter
end
Public Class ODataMediaTypeFormatter
Inherits MediaTypeFormatter
Constructors
Name | Description | |
---|---|---|
ODataMediaTypeFormatter(IEnumerable<ODataPayloadKind>) | Initializes a new instance of the ODataMediaTypeFormatter class. |
|
ODataMediaTypeFormatter(ODataDeserializerProvider, ODataSerializerProvider, IEnumerable<ODataPayloadKind>) | Initializes a new instance of the ODataMediaTypeFormatter class. |
Properties
Name | Description | |
---|---|---|
DeserializerProvider | Gets the ODataDeserializerProvider that will be used by this formatter instance. |
|
MediaTypeMappings | Gets the mutable collection of MediaTypeMapping objects that match HTTP requests to media types.(Inherited from MediaTypeFormatter.) |
|
MessageReaderQuotas | Gets the ODataMessageQuotas that this formatter uses on the read side. |
|
MessageReaderSettings | Gets the ODataMessageReaderSettings to be used while reading requests. |
|
MessageWriterQuotas | Gets the ODataMessageQuotas that this formatter uses on the write side. |
|
MessageWriterSettings | Gets the ODataMessageWriterSettings to be used while writing responses. |
|
RequiredMemberSelector | Gets or sets the IRequiredMemberSelector instance used to determine required members.(Inherited from MediaTypeFormatter.) |
|
SerializerProvider | Gets the ODataSerializerProvider that will be used by this formatter instance. |
|
SupportedEncodings | Gets the mutable collection of character encodings supported bythis MediaTypeFormatter.(Inherited from MediaTypeFormatter.) |
|
SupportedMediaTypes | Gets the mutable collection of media types supported bythis MediaTypeFormatter.(Inherited from MediaTypeFormatter.) |
Methods
Extension Methods
Name | Description | |
---|---|---|
AddQueryStringMapping(String, String, MediaTypeHeaderValue) | Overloaded. (Defined by MediaTypeFormatterExtensions.) |
|
AddQueryStringMapping(String, String, String) | Overloaded. (Defined by MediaTypeFormatterExtensions.) |
|
AddRequestHeaderMapping(String, String, StringComparison, Boolean, MediaTypeHeaderValue) | Overloaded. (Defined by MediaTypeFormatterExtensions.) |
|
AddRequestHeaderMapping(String, String, StringComparison, Boolean, String) | Overloaded. (Defined by MediaTypeFormatterExtensions.) |
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