Share via


ODataMediaTypeFormatters.Create Method (ODataSerializerProvider, ODataDeserializerProvider)

Creates a list of media type formatters to handle OData with the given serializerProvider and deserializerProvider.

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

Syntax

'Declaration
Public Shared Function Create ( _
    serializerProvider As ODataSerializerProvider, _
    deserializerProvider As ODataDeserializerProvider _
) As IList(Of ODataMediaTypeFormatter)
'Usage
Dim serializerProvider As ODataSerializerProvider 
Dim deserializerProvider As ODataDeserializerProvider 
Dim returnValue As IList(Of ODataMediaTypeFormatter)

returnValue = ODataMediaTypeFormatters.Create(serializerProvider, _
    deserializerProvider)
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 static function Create(
    serializerProvider : ODataSerializerProvider, 
    deserializerProvider : ODataDeserializerProvider
) : IList<ODataMediaTypeFormatter>

Parameters

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.

See Also

Reference

ODataMediaTypeFormatters Class

Create Overload

System.Web.Http.OData.Formatter Namespace