Compartilhar via


ODataMediaTypeFormatters.Create Method

 

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

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static Create()

Creates a list of media type formatters to handle OData.

System_CAPS_pubmethodSystem_CAPS_static 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

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