ODataSerializerProvider.GetODataPayloadSerializer Method
Gets an ODataSerializer for the given model and type.
Namespace: System.Web.Http.OData.Formatter.Serialization
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public MustOverride Function GetODataPayloadSerializer ( _
model As IEdmModel, _
type As Type, _
request As HttpRequestMessage _
) As ODataSerializer
'Usage
Dim instance As ODataSerializerProvider
Dim model As IEdmModel
Dim type As Type
Dim request As HttpRequestMessage
Dim returnValue As ODataSerializer
returnValue = instance.GetODataPayloadSerializer(model, _
type, request)
public abstract ODataSerializer GetODataPayloadSerializer(
IEdmModel model,
Type type,
HttpRequestMessage request
)
public:
virtual ODataSerializer^ GetODataPayloadSerializer(
IEdmModel^ model,
Type^ type,
HttpRequestMessage^ request
) abstract
abstract GetODataPayloadSerializer :
model:IEdmModel *
type:Type *
request:HttpRequestMessage -> ODataSerializer
public abstract function GetODataPayloadSerializer(
model : IEdmModel,
type : Type,
request : HttpRequestMessage
) : ODataSerializer
Parameters
- model
Type: IEdmModel
The EDM model associated with the request.
- type
Type: System.Type
The Type for which the serializer is being requested.
- request
Type: System.Net.Http.HttpRequestMessage
The message request.
Return Value
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializer
The ODataSerializer for the given type.