Share via


ODataMessageReaderSettings.MaxProtocolVersion Property

 

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

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

Syntax

public ODataVersion MaxProtocolVersion {
    [CompilerGeneratedAttribute]
    get;
    [CompilerGeneratedAttribute]
    set;
}
public:
property ODataVersion MaxProtocolVersion {
    [CompilerGeneratedAttribute]
    ODataVersion get();
    [CompilerGeneratedAttribute]
    void set(ODataVersion value);
}
member MaxProtocolVersion : ODataVersion with get, set
Public Property MaxProtocolVersion As ODataVersion

Property Value

Type: Microsoft.OData.Core.ODataVersion

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.

See Also

ODataMessageReaderSettings Class
Microsoft.OData.Core Namespace

Return to top