# C1.Web.Mvc.BaseODataCollectionViewService-1.ODataVersion

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_BaseODataCollectionViewService_1_ODataVersion_" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.ODataVersion*">ODataVersion Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_BaseODataCollectionViewService_1_ODataVersion_" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.ODataVersion*"></a>
<h4 id="C1_Web_Mvc_BaseODataCollectionViewService_1_ODataVersion" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.ODataVersion">ODataVersion</h4>
<div class="markdown level1 summary"><p>Gets or sets the OData version used by the server.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public double? ODataVersion { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property ODataVersion As Double?</code></pre>
</div>
<h5 id="C1_Web_Mvc_BaseODataCollectionViewService_1_ODataVersion_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>There are currently four versions of OData services, 1.0 through 4.0. Version 4.0 is used by the latest services, but there are many legacy services still in operation. If you know what version of OData your service implements, set the <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.ODataVersion.html#C1_Web_Mvc_BaseODataCollectionViewService_1_ODataVersion">ODataVersion</a> property to the appropriate value (1 through 4) when creating it.</p>
</div>
</div>
