Share via


ODataMessageReaderSettings.MaxProtocolVersion Property

Definition

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

public Microsoft.OData.ODataVersion MaxProtocolVersion { get; set; }
member this.MaxProtocolVersion : Microsoft.OData.ODataVersion with get, set
Public Property MaxProtocolVersion As ODataVersion

Property Value

The maximum OData protocol version the reader should accept and understand.

Remarks

If the payload to be read has higher OData-Version 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.

Applies to