Share via


ODataSerializerProvider.GetODataPayloadSerializer Method

Definition

Overloads

GetODataPayloadSerializer(Type, HttpRequest)

Gets an ODataSerializer for the given type.

GetODataPayloadSerializer(Type, HttpRequestMessage)

Gets an ODataSerializer for the given type.

GetODataPayloadSerializer(Type, HttpRequest)

Gets an ODataSerializer for the given type.

public abstract Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializer GetODataPayloadSerializer (Type type, Microsoft.AspNetCore.Http.HttpRequest request);
abstract member GetODataPayloadSerializer : Type * Microsoft.AspNetCore.Http.HttpRequest -> Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializer
Public MustOverride Function GetODataPayloadSerializer (type As Type, request As HttpRequest) As ODataSerializer

Parameters

type
Type

The Type for which the serializer is being requested.

request
HttpRequest

The request for which the response is being serialized.

Returns

The ODataSerializer for the given type.

Remarks

This signature uses types that are AspNetCore-specific.

Applies to

GetODataPayloadSerializer(Type, HttpRequestMessage)

Gets an ODataSerializer for the given type.

public abstract Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializer GetODataPayloadSerializer (Type type, System.Net.Http.HttpRequestMessage request);
abstract member GetODataPayloadSerializer : Type * System.Net.Http.HttpRequestMessage -> Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializer
Public MustOverride Function GetODataPayloadSerializer (type As Type, request As HttpRequestMessage) As ODataSerializer

Parameters

type
Type

The Type for which the serializer is being requested.

request
HttpRequestMessage

The request for which the response is being serialized.

Returns

The ODataSerializer for the given type.

Remarks

This signature uses types that are AspNet-specific.

Applies to