ODataMessageReaderSettings.MaxProtocolVersion Property

Gets or sets the maximum OData protocol version the reader should accept and understand.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
Public Property MaxProtocolVersion As ODataVersion 
    Get 
    Set
'Usage
Dim instance As ODataMessageReaderSettings 
Dim value As ODataVersion 

value = instance.MaxProtocolVersion

instance.MaxProtocolVersion = value
public ODataVersion MaxProtocolVersion { get; set; }
public:
property ODataVersion MaxProtocolVersion {
    ODataVersion get ();
    void set (ODataVersion value);
}
member MaxProtocolVersion : ODataVersion with get, set
function get MaxProtocolVersion () : ODataVersion 
function set MaxProtocolVersion (value : ODataVersion)

Property Value

Type: Microsoft.Data.OData.ODataVersion
The maximum OData protocol version the reader should accept and understand.

Remarks

If the payload to be read has higher DataServiceVersion than the value specified for this property the reader will fail. Reader will also not report features which require higher version than specified for this property. It may either ignore such features in the payload or fail on them.

See Also

Reference

ODataMessageReaderSettings Class

Microsoft.Data.OData Namespace