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 Property MaxProtocolVersion As DataServiceProtocolVersion 
    Get 
    Friend Set
'Usage
Dim instance As DataServiceContext 
Dim value As DataServiceProtocolVersion 

value = instance.MaxProtocolVersion
public DataServiceProtocolVersion MaxProtocolVersion { get; internal set; }
public:
property DataServiceProtocolVersion MaxProtocolVersion {
    DataServiceProtocolVersion get ();
    internal: void set (DataServiceProtocolVersion value);
}
member MaxProtocolVersion : DataServiceProtocolVersion with get, internal set
function get MaxProtocolVersion () : DataServiceProtocolVersion 
internal function set MaxProtocolVersion (value : 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