Share via


ODataMessageExtensions.GetDataServiceVersion Method

Include Protected Members
Include Inherited Members

Reads the DataServiceVersion header from the message and parses it.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member 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.
Public methodStatic member 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.

Top

See Also

Reference

ODataMessageExtensions Class

Microsoft.Data.OData Namespace