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)

Syntax

'Declaration
Public ReadOnly Property MaxProtocolVersion As DataServiceProtocolVersion 
    Get
'Usage
Dim instance As DataServiceContext 
Dim value As DataServiceProtocolVersion 

value = instance.MaxProtocolVersion
public DataServiceProtocolVersion MaxProtocolVersion { get; }
public:
property DataServiceProtocolVersion MaxProtocolVersion {
    DataServiceProtocolVersion get ();
}
member MaxProtocolVersion : DataServiceProtocolVersion
function get MaxProtocolVersion () : DataServiceProtocolVersion

Property Value

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

Remarks

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.

See Also

Reference

DataServiceContext Class

System.Data.Services.Client Namespace