ODataMediaTypeFormatter Constructor
Namespace: System.Web.Http.OData.Formatter
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
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. |
See Also
ODataMediaTypeFormatter Class
System.Web.Http.OData.Formatter Namespace
Return to top
ODataMediaTypeFormatter Constructor (IEnumerable<ODataPayloadKind>)
Initializes a new instance of the ODataMediaTypeFormatter class.
Syntax
public ODataMediaTypeFormatter(
IEnumerable<ODataPayloadKind> payloadKinds
)
public:
ODataMediaTypeFormatter(
IEnumerable<ODataPayloadKind>^ payloadKinds
)
new :
payloadKinds:IEnumerable<ODataPayloadKind> -> ODataMediaTypeFormatter
Public Sub New (
payloadKinds As IEnumerable(Of ODataPayloadKind)
)
Parameters
payloadKinds
Type: System.Collections.Generic.IEnumerable<ODataPayloadKind>The kind of payloads this formatter supports.
Return to top
ODataMediaTypeFormatter Constructor (ODataDeserializerProvider, ODataSerializerProvider, IEnumerable<ODataPayloadKind>)
Initializes a new instance of the ODataMediaTypeFormatter class.
Syntax
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 Sub New (
deserializerProvider As ODataDeserializerProvider,
serializerProvider As ODataSerializerProvider,
payloadKinds As IEnumerable(Of ODataPayloadKind)
)
Parameters
deserializerProvider
Type: System.Web.Http.OData.Formatter.Deserialization.ODataDeserializerProviderThe ODataDeserializerProvider to use.
serializerProvider
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerProviderThe ODataSerializerProvider to use.
payloadKinds
Type: System.Collections.Generic.IEnumerable<ODataPayloadKind>The kind of payloads this formatter supports.
Return to top