# C1.Data.ClientView-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Data_ClientView_1" data-uid="C1.Data.ClientView`1" class="text-break">ClientView&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents a <i>client view</i>, that is, a <a class="xref" href="../C1.LiveLinq.4.8/C1.LiveLinq.LiveViews.View-1.html">live view</a> that is connected to a remote source,
such as an System.Data.Objects.ObjectContext.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="../C1.LiveLinq.4.8/C1.LiveLinq.LiveViews.View.html">View</a></div>
    <div class="level2"><a class="xref" href="../C1.LiveLinq.4.8/C1.LiveLinq.LiveViews.View-1.html">View</a>&lt;T&gt;</div>
    <div class="level3"><span class="xref">ClientView&lt;T&gt;</span></div>
      <div class="level4"><a class="xref" href="C1.Data.FilteredView-1.html">FilteredView</a>&lt;T&gt;</div>
      <div class="level4"><a class="xref" href="C1.Data.PagingView-1.html">PagingView</a>&lt;T&gt;</div>
      <div class="level4"><a class="xref" href="C1.Data.ProgressiveView-1.html">ProgressiveView</a>&lt;T&gt;</div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ilistsource">IListSource</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.itypedlist">ITypedList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.iitemproperties">IItemProperties</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ieditablecollectionview">IEditableCollectionView</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;T&gt;</div>
    <div><a class="xref" href="../C1.LiveLinq.4.8/C1.LiveLinq.IObservableSource-1.html">IObservableSource</a>&lt;T&gt;</div>
    <div><a class="xref" href="../C1.LiveLinq.4.8/C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icollectionview">ICollectionView</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Data.html">C1.Data</a></h6>
  <h6><strong>Assembly</strong>: C1.Data.Entity.4.8.dll</h6>
  <h5 id="C1_Data_ClientView_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ClientView&lt;T&gt; : View&lt;T&gt;, IList, ICollection, IDisposable, IListSource, ITypedList, IItemProperties, IEditableCollectionView, IList&lt;T&gt;, ICollection&lt;T&gt;, IObservableSource&lt;T&gt;, IIndexedSource&lt;T&gt;, IEnumerable&lt;T&gt;, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ClientView(Of T)
    Inherits View(Of T)
    Implements IList, ICollection, IDisposable, IListSource, ITypedList, IItemProperties, IEditableCollectionView, IList(Of T), ICollection(Of T), IObservableSource(Of T), IIndexedSource(Of T), IEnumerable(Of T), ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <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 the elements in the view.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Data_ClientView_1_AutoLoad" data-uid="C1.Data.ClientView`1.AutoLoad">
          <a class="xref" href="C1.Data.ClientView-1.AutoLoad.html#C1_Data_ClientView_1_AutoLoad">AutoLoad</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a boolean value indicating whether the <a class="xref" href="C1.Data.ClientView-1.html">client view</a> must be loaded automatically when its data is accessed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_IsLoaded" data-uid="C1.Data.ClientView`1.IsLoaded">
          <a class="xref" href="C1.Data.ClientView-1.IsLoaded.html#C1_Data_ClientView_1_IsLoaded">IsLoaded</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.Data.ClientView-1.html">client view</a> is <a class="xref" href="C1.Data.ClientView-1.Load.html#C1_Data_ClientView_1_Load">loaded</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_IsLoading" data-uid="C1.Data.ClientView`1.IsLoading">
          <a class="xref" href="C1.Data.ClientView-1.IsLoading.html#C1_Data_ClientView_1_IsLoading">IsLoading</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.Data.ClientView-1.html">client view</a> is being <a class="xref" href="C1.Data.ClientView-1.Load.html#C1_Data_ClientView_1_Load">loaded</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_Scope" data-uid="C1.Data.ClientView`1.Scope">
          <a class="xref" href="C1.Data.ClientView-1.Scope.html#C1_Data_ClientView_1_Scope">Scope</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Data.ClientScope.html">client scope</a> to which this client view belongs.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Data_ClientView_1_AsFiltered_System_Linq_Expressions_Expression_System_Func__0_System_Boolean___" data-uid="C1.Data.ClientView`1.AsFiltered(System.Linq.Expressions.Expression{System.Func{`0,System.Boolean}})">
          <a class="xref" href="C1.Data.ClientView-1.AsFiltered.html#C1_Data_ClientView_1_AsFiltered_System_Linq_Expressions_Expression_System_Func__0_System_Boolean___">AsFiltered(Expression&lt;Func&lt;T, bool&gt;&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Filters the view on the server side using a <code class="paramref">predicate</code>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_AsFilteredBound__1_System_Linq_Expressions_Expression_System_Func__0___0___" data-uid="C1.Data.ClientView`1.AsFilteredBound``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
          <a class="xref" href="C1.Data.ClientView-1.AsFilteredBound.html#C1_Data_ClientView_1_AsFilteredBound__1_System_Linq_Expressions_Expression_System_Func__0___0___">AsFilteredBound&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Filters the view on the server using a key selector function and configurable
<a class="xref" href="C1.Data.FilteredView-1.FilterKey.html#C1_Data_FilteredView_1_FilterKey">value</a> and
<a class="xref" href="C1.Data.FilteredView-1.Operator.html#C1_Data_FilteredView_1_Operator">operator</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_CancelLoad" data-uid="C1.Data.ClientView`1.CancelLoad">
          <a class="xref" href="C1.Data.ClientView-1.CancelLoad.html#C1_Data_ClientView_1_CancelLoad">CancelLoad()</a>
        </td>
        <td class="markdown level1 summary"><p>Cancels the current <a class="xref" href="C1.Data.ClientView-1.Load.html#C1_Data_ClientView_1_Load">loading operation</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_Include_System_String_" data-uid="C1.Data.ClientView`1.Include(System.String)">
          <a class="xref" href="C1.Data.ClientView-1.Include.html#C1_Data_ClientView_1_Include_System_String_">Include(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies related objects to include while loading the <a class="xref" href="C1.Data.ClientView-1.html">client view</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_Load" data-uid="C1.Data.ClientView`1.Load">
          <a class="xref" href="C1.Data.ClientView-1.Load.html#C1_Data_ClientView_1_Load">Load()</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the entities of the <a class="xref" href="C1.Data.ClientView-1.html">client view</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_Paging__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Boolean_System_Int32_" data-uid="C1.Data.ClientView`1.Paging``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Boolean,System.Int32)">
          <a class="xref" href="C1.Data.ClientView-1.Paging.html#C1_Data_ClientView_1_Paging__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Boolean_System_Int32_">Paging&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt;, bool, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies paging to this <a class="xref" href="C1.Data.ClientView-1.html">client view</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_Paging__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Int32_" data-uid="C1.Data.ClientView`1.Paging``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Int32)">
          <a class="xref" href="C1.Data.ClientView-1.Paging.html#C1_Data_ClientView_1_Paging__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Int32_">Paging&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt;, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies paging to this <a class="xref" href="C1.Data.ClientView-1.html">client view</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_ProgressiveLoading__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Boolean_System_Int32_" data-uid="C1.Data.ClientView`1.ProgressiveLoading``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Boolean,System.Int32)">
          <a class="xref" href="C1.Data.ClientView-1.ProgressiveLoading.html#C1_Data_ClientView_1_ProgressiveLoading__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Boolean_System_Int32_">ProgressiveLoading&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt;, bool, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies that the <a class="xref" href="C1.Data.ClientView-1.html">client view</a> loading is performed not in a single trip to the server but
in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_ProgressiveLoading__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Int32_" data-uid="C1.Data.ClientView`1.ProgressiveLoading``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Int32)">
          <a class="xref" href="C1.Data.ClientView-1.ProgressiveLoading.html#C1_Data_ClientView_1_ProgressiveLoading__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Int32_">ProgressiveLoading&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt;, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies that the <a class="xref" href="C1.Data.ClientView-1.html">client view</a> loading is performed not in a single trip to the server but
in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_ClientView_1_Refresh" data-uid="C1.Data.ClientView`1.Refresh">
          <a class="xref" href="C1.Data.ClientView-1.Refresh.html#C1_Data_ClientView_1_Refresh">Refresh()</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the entities of the <a class="xref" href="C1.Data.ClientView-1.html">client view</a> ignoring the client-side cache.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Data_ClientView_1_Loaded" data-uid="C1.Data.ClientView`1.Loaded">
          <a class="xref" href="C1.Data.ClientView-1.Loaded.html">Loaded</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Data.ClientView-1.html">client view</a> has finished <a class="xref" href="C1.Data.ClientView-1.Load.html#C1_Data_ClientView_1_Load">loading</a> succesfully,
and also when an exception has been thrown during <a class="xref" href="C1.Data.ClientView-1.Load.html#C1_Data_ClientView_1_Load">loading</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="C1.Data.DataExtensions.ExecuteIn.html#C1_Data_DataExtensions_ExecuteIn__1_System_Collections_Generic_IEnumerable___0__C1_Data_ClientScope_">DataExtensions.ExecuteIn&lt;T&gt;(IEnumerable&lt;T&gt;, ClientScope)</a>
  </div>

</div>
