# C1.LiveLinq.LiveViews.View-1.Union

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_LiveLinq_LiveViews_View_1_Union_" data-uid="C1.LiveLinq.LiveViews.View`1.Union*">Union Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_LiveLinq_LiveViews_View_1_Union_" data-uid="C1.LiveLinq.LiveViews.View`1.Union*"></a>
<h4 id="C1_LiveLinq_LiveViews_View_1_Union_C1_LiveLinq_IObservableSource__0__" data-uid="C1.LiveLinq.LiveViews.View`1.Union(C1.LiveLinq.IObservableSource{`0})">Union(IObservableSource&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Set union of two views.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public View&lt;T&gt; Union(IObservableSource&lt;T&gt; second)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Union(second As IObservableSource(Of T)) As View(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="C1.LiveLinq.IObservableSource-1.html">IObservableSource</a>&lt;T&gt;</td>
      <td><span class="parametername">second</span></td>
      <td><p>A collection (usually, a view) whose distinct elements form the second set for the union.</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.LiveLinq.LiveViews.View-1.html">View</a>&lt;T&gt;</td>
      <td><p>The view that contains the elements from both input views, excluding duplicates.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_LiveLinq_LiveViews_View_1_Union_C1_LiveLinq_IObservableSource__0___remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method excludes duplicates from the result set. This is different behavior to
the <a class="xref" href="C1.LiveLinq.LiveViews.View-1.Concat.html#C1_LiveLinq_LiveViews_View_1_Concat_C1_LiveLinq_IObservableSource__0__">Concat(IObservableSource&lt;T&gt;)</a> method, which returns all the elements in the input sequences including duplicates.</p>
</div>
</div>
