ODataMediaTypeFormatters.Create Method
Namespace: System.Web.Http.OData.Formatter
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
Create() | Creates a list of media type formatters to handle OData. |
|
Create(ODataSerializerProvider, ODataDeserializerProvider) | Creates a list of media type formatters to handle OData with the given serializerProvider and deserializerProvider. |
See Also
ODataMediaTypeFormatters Class
System.Web.Http.OData.Formatter Namespace
Return to top
ODataMediaTypeFormatters.Create Method ()
Creates a list of media type formatters to handle OData.
Syntax
public static IList<ODataMediaTypeFormatter> Create()
public:
static IList<ODataMediaTypeFormatter^>^ Create()
static member Create : unit -> IList<ODataMediaTypeFormatter>
Public Shared Function Create As IList(Of ODataMediaTypeFormatter)
Return Value
Type: System.Collections.Generic.IList<ODataMediaTypeFormatter>
A list of media type formatters to handle OData.
Return to top
ODataMediaTypeFormatters.Create Method (ODataSerializerProvider, ODataDeserializerProvider)
Creates a list of media type formatters to handle OData with the given serializerProvider and deserializerProvider.
Syntax
public static IList<ODataMediaTypeFormatter> Create(
ODataSerializerProvider serializerProvider,
ODataDeserializerProvider deserializerProvider
)
public:
static IList<ODataMediaTypeFormatter^>^ Create(
ODataSerializerProvider^ serializerProvider,
ODataDeserializerProvider^ deserializerProvider
)
static member Create :
serializerProvider:ODataSerializerProvider *
deserializerProvider:ODataDeserializerProvider -> IList<ODataMediaTypeFormatter>
Public Shared Function Create (
serializerProvider As ODataSerializerProvider,
deserializerProvider As ODataDeserializerProvider
) As IList(Of ODataMediaTypeFormatter)
Parameters
serializerProvider
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerProviderThe serializer provider to use.
deserializerProvider
Type: System.Web.Http.OData.Formatter.Deserialization.ODataDeserializerProviderThe deserializer provider to use.
Return Value
Type: System.Collections.Generic.IList<ODataMediaTypeFormatter>
A list of media type formatters to handle OData.
Remarks
The default serializer provider is DefaultODataSerializerProvider and the default deserializer provider is DefaultODataDeserializerProvider.
Return to top