ODataMediaTypeFormatter Constructor (ODataDeserializerProvider, ODataSerializerProvider, IEnumerable<ODataPayloadKind>)
Initializes a new instance of the ODataMediaTypeFormatter class.
Namespace: System.Web.Http.OData.Formatter
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Sub New ( _
deserializerProvider As ODataDeserializerProvider, _
serializerProvider As ODataSerializerProvider, _
payloadKinds As IEnumerable(Of ODataPayloadKind) _
)
'Usage
Dim deserializerProvider As ODataDeserializerProvider
Dim serializerProvider As ODataSerializerProvider
Dim payloadKinds As IEnumerable(Of ODataPayloadKind)
Dim instance As New ODataMediaTypeFormatter(deserializerProvider, _
serializerProvider, payloadKinds)
public ODataMediaTypeFormatter(
ODataDeserializerProvider deserializerProvider,
ODataSerializerProvider serializerProvider,
IEnumerable<ODataPayloadKind> payloadKinds
)
public:
ODataMediaTypeFormatter(
ODataDeserializerProvider^ deserializerProvider,
ODataSerializerProvider^ serializerProvider,
IEnumerable<ODataPayloadKind>^ payloadKinds
)
new :
deserializerProvider:ODataDeserializerProvider *
serializerProvider:ODataSerializerProvider *
payloadKinds:IEnumerable<ODataPayloadKind> -> ODataMediaTypeFormatter
public function ODataMediaTypeFormatter(
deserializerProvider : ODataDeserializerProvider,
serializerProvider : ODataSerializerProvider,
payloadKinds : IEnumerable<ODataPayloadKind>
)
Parameters
- deserializerProvider
Type: System.Web.Http.OData.Formatter.Deserialization.ODataDeserializerProvider
The ODataDeserializerProvider to use.
- serializerProvider
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerProvider
The ODataSerializerProvider to use.
- payloadKinds
Type: System.Collections.Generic.IEnumerable<ODataPayloadKind>
The kind of payloads this formatter supports.