ODataMediaTypeFormatter Constructor (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 ( _
payloadKinds As IEnumerable(Of ODataPayloadKind) _
)
'Usage
Dim payloadKinds As IEnumerable(Of ODataPayloadKind)
Dim instance As New ODataMediaTypeFormatter(payloadKinds)
public ODataMediaTypeFormatter(
IEnumerable<ODataPayloadKind> payloadKinds
)
public:
ODataMediaTypeFormatter(
IEnumerable<ODataPayloadKind>^ payloadKinds
)
new :
payloadKinds:IEnumerable<ODataPayloadKind> -> ODataMediaTypeFormatter
public function ODataMediaTypeFormatter(
payloadKinds : IEnumerable<ODataPayloadKind>
)
Parameters
- payloadKinds
Type: System.Collections.Generic.IEnumerable<ODataPayloadKind>
The kind of payloads this formatter supports.