# C1.C1Preview.DataBinding.Aggregate.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_DataBinding_Aggregate__ctor_" data-uid="C1.C1Preview.DataBinding.Aggregate.#ctor*">Aggregate Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_DataBinding_Aggregate__ctor_" data-uid="C1.C1Preview.DataBinding.Aggregate.#ctor*"></a>
<h4 id="C1_C1Preview_DataBinding_Aggregate__ctor_System_String_" data-uid="C1.C1Preview.DataBinding.Aggregate.#ctor(System.String)">Aggregate(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.DataBinding.Aggregate.html">Aggregate</a> class,
assigning the name of the aggregate.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Aggregate(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String)</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">name</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.NamedCollectionItem.Name.html#C1_C1Preview_NamedCollectionItem_Name">Name</a> of this aggregate.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_DataBinding_Aggregate__ctor_" data-uid="C1.C1Preview.DataBinding.Aggregate.#ctor*"></a>
<h4 id="C1_C1Preview_DataBinding_Aggregate__ctor_System_String_System_String_C1_C1Preview_DataBinding_C1DataBinding_C1_C1Preview_DataBinding_RunningEnum_C1_C1Preview_DataBinding_AggregateFuncEnum_" data-uid="C1.C1Preview.DataBinding.Aggregate.#ctor(System.String,System.String,C1.C1Preview.DataBinding.C1DataBinding,C1.C1Preview.DataBinding.RunningEnum,C1.C1Preview.DataBinding.AggregateFuncEnum)">Aggregate(string, string, C1DataBinding, RunningEnum, AggregateFuncEnum)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.DataBinding.Aggregate.html">Aggregate</a> class,
assigning the name, expression, data binding, scope and function of the aggregate.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Aggregate(string name, string expressionText, C1DataBinding dataBinding, RunningEnum running, AggregateFuncEnum func)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, expressionText As String, dataBinding As C1DataBinding, running As RunningEnum, func As AggregateFuncEnum)</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">name</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.NamedCollectionItem.Name.html#C1_C1Preview_NamedCollectionItem_Name">Name</a> property of this aggregate.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">expressionText</span></td>
      <td><p>A string assigned to the <a class="xref" href="C1.C1Preview.DataBinding.Aggregate.ExpressionText.html#C1_C1Preview_DataBinding_Aggregate_ExpressionText">ExpressionText</a> property of this aggregate.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.DataBinding.C1DataBinding.html">C1DataBinding</a></td>
      <td><span class="parametername">dataBinding</span></td>
      <td><p><a class="xref" href="C1.C1Preview.DataBinding.C1DataBinding.html">C1DataBinding</a> assigned to the <a class="xref" href="C1.C1Preview.DataBinding.Aggregate.DataBinding.html#C1_C1Preview_DataBinding_Aggregate_DataBinding">DataBinding</a> property of this aggregate.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.DataBinding.RunningEnum.html">RunningEnum</a></td>
      <td><span class="parametername">running</span></td>
      <td><p>A value assigned to the <a class="xref" href="C1.C1Preview.DataBinding.Aggregate.Running.html#C1_C1Preview_DataBinding_Aggregate_Running">Running</a> property of this aggregate.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.DataBinding.AggregateFuncEnum.html">AggregateFuncEnum</a></td>
      <td><span class="parametername">func</span></td>
      <td><p>A value assigned to the <a class="xref" href="C1.C1Preview.DataBinding.Aggregate.Func.html#C1_C1Preview_DataBinding_Aggregate_Func">Func</a> property of this aggregate.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
