ODataMessageExtensions Class
Represents extension methods to IODataRequestMessage and IODataResponseMessage.
Inheritance Hierarchy
System.Object
Microsoft.Data.OData.ODataMessageExtensions
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public NotInheritable Class ODataMessageExtensions
'Usage
public static class ODataMessageExtensions
[ExtensionAttribute]
public ref class ODataMessageExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ODataMessageExtensions = class end
public final class ODataMessageExtensions
The ODataMessageExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetDataServiceVersion(IODataRequestMessage, ODataVersion) | Reads the DataServiceVersion header from the message and parses it. If no DataServiceVersion header is found it sets the default version to be used for reading. | |
GetDataServiceVersion(IODataResponseMessage, ODataVersion) | Reads the DataServiceVersion header from the message and parses it. If no DataServiceVersion header is found it sets the default version to be used for reading. | |
PreferenceAppliedHeader | Gets the ODataPreferenceHeader instance to get or set preferences on the "Preference-Applied" header of the responseMessage. | |
PreferHeader | Gets the ODataPreferenceHeader instance to get or set preferences on the "Prefer" header of the requestMessage. |
Top
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.