Share via


ODataMessageExtensions Class

Definition

Extension methods to IODataRequestMessage and IODataResponseMessage.

public static class ODataMessageExtensions
type ODataMessageExtensions = class
Public Module ODataMessageExtensions
Inheritance
ODataMessageExtensions

Methods

GetODataVersion(IODataRequestMessage, ODataVersion)

Reads the OData-Version header from the message and parses it. If no OData-Version header is found it sets the default version to be used for reading.

GetODataVersion(IODataResponseMessage, ODataVersion)

Reads the OData-Version header from the message and parses it. If no OData-Version header is found it sets the default version to be used for reading.

PreferenceAppliedHeader(IODataResponseMessage)

Gets the ODataPreferenceHeader instance to get or set preferences on the "Preference-Applied" header of the responseMessage.

PreferHeader(IODataRequestMessage)

Gets the ODataPreferenceHeader instance to get or set preferences on the "Prefer" header of the requestMessage.

Applies to