DataServiceContext.MaxProtocolVersion Property

Gets the maximum version of the Open Data Protocol (OData) that the client is allowed to use.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

public DataServiceProtocolVersion MaxProtocolVersion { get; internal set; }

Property Value

Type: System.Data.Services.Common.DataServiceProtocolVersion
The maximum version of OData that the client is allowed to use.

When the request to the data service or response from the data service requires the use of a version of OData that is higher than MaxProtocolVersion, an exception is raised.