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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_BaseODataCollectionViewService_1_Fields_" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.Fields*">Fields Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_BaseODataCollectionViewService_1_Fields_" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.Fields*"></a>
<h4 id="C1_Web_Mvc_BaseODataCollectionViewService_1_Fields" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.Fields">Fields</h4>
<div class="markdown level1 summary"><p>Gets or sets an array containing the names of the fields to retrieve from the data source.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string[] Fields { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Fields As String()</code></pre>
</div>
<h5 id="C1_Web_Mvc_BaseODataCollectionViewService_1_Fields_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If this property is set to null or to an empty array, all fields are retrieved.</p>
</div>
</div>
