ODataSerializerProvider.GetODataPayloadSerializer Method (IEdmModel, Type, HttpRequestMessage)
Gets an ODataSerializer for the given model and type.
Namespace: System.Web.OData.Formatter.Serialization
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
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 MustOverride Function GetODataPayloadSerializer (
model As IEdmModel,
type As Type,
request As HttpRequestMessage
) As ODataSerializer
Parameters
model
Type: Microsoft.OData.Edm.IEdmModelThe EDM model associated with the request.
type
Type: System.TypeThe Type for which the serializer is being requested.
request
Type: System.Net.Http.HttpRequestMessageThe request for which the response is being serialized.
Return Value
Type: System.Web.OData.Formatter.Serialization.ODataSerializer
The ODataSerializer for the given type.
See Also
ODataSerializerProvider Class
System.Web.OData.Formatter.Serialization Namespace
Return to top