Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MaxProtocolVersion Property

DataServiceContext.MaxProtocolVersion Property

WCF Data Services 5.0

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; }

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.

© 2015 Microsoft