Share via


ODataMessageExtensions Class

 

Represents the extension methods to IODataRequestMessage and IODataResponseMessage.

Namespace:   Microsoft.OData.Core
Assembly:  Microsoft.OData.Core (in Microsoft.OData.Core.dll)

Inheritance Hierarchy

System.Object
  Microsoft.OData.Core.ODataMessageExtensions

Syntax

public static class ODataMessageExtensions
[ExtensionAttribute]
public ref class ODataMessageExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type ODataMessageExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class ODataMessageExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static GetODataVersion(IODataRequestMessage, ODataVersion)

Reads the OData-Version header from the message and parses it.

System_CAPS_pubmethodSystem_CAPS_static GetODataVersion(IODataResponseMessage, ODataVersion)

Reads the OData-Version header from the message and parses it.

System_CAPS_pubmethodSystem_CAPS_static PreferenceAppliedHeader(IODataResponseMessage)

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

System_CAPS_pubmethodSystem_CAPS_static PreferHeader(IODataRequestMessage)

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.OData.Core Namespace

Return to top