# C1.Data.Entities.EntityClientScope.GetItems

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Data_Entities_EntityClientScope_GetItems_" data-uid="C1.Data.Entities.EntityClientScope.GetItems*">GetItems Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Data_Entities_EntityClientScope_GetItems_" data-uid="C1.Data.Entities.EntityClientScope.GetItems*"></a>
<h4 id="C1_Data_Entities_EntityClientScope_GetItems__1" data-uid="C1.Data.Entities.EntityClientScope.GetItems``1">GetItems&lt;T&gt;()</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.Data.ClientView-1.html">client view</a> of entities of a given type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ClientView&lt;T&gt; GetItems&lt;T&gt;()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetItems(Of T)() As ClientView(Of T)</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Data.ClientView-1.html">ClientView</a>&lt;T&gt;</td>
      <td><p>A <a class="xref" href="C1.Data.ClientView-1.html">client view</a> of entities of the specified type.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td><p>The type of entities to load.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Data_Entities_EntityClientScope_GetItems__1_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Entities are loaded using the System.Data.Metadata.Edm.EntitySet of the matching entity type
from the System.Data.Objects.ObjectContext.DefaultContainerName</p>
</div>


<a id="C1_Data_Entities_EntityClientScope_GetItems_" data-uid="C1.Data.Entities.EntityClientScope.GetItems*"></a>
<h4 id="C1_Data_Entities_EntityClientScope_GetItems__1_System_String_" data-uid="C1.Data.Entities.EntityClientScope.GetItems``1(System.String)">GetItems&lt;T&gt;(string)</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.Data.ClientView-1.html">client view</a> of entities from the specified <code class="paramref">entitySetName</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ClientView&lt;T&gt; GetItems&lt;T&gt;(string entitySetName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetItems(Of T)(entitySetName As String) As ClientView(Of T)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">entitySetName</span></td>
      <td><p>The name of the entity set to load entities from.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Data.ClientView-1.html">ClientView</a>&lt;T&gt;</td>
      <td><p>A <a class="xref" href="C1.Data.ClientView-1.html">client view</a> of entities from the specified <code class="paramref">entitySetName</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td><p>The type of entities in the <code class="paramref">entitySetName</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
