# C1.C1Preview.EventCollectionChangeEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_EventCollectionChangeEventArgs__ctor_" data-uid="C1.C1Preview.EventCollectionChangeEventArgs.#ctor*">EventCollectionChangeEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_EventCollectionChangeEventArgs__ctor_" data-uid="C1.C1Preview.EventCollectionChangeEventArgs.#ctor*"></a>
<h4 id="C1_C1Preview_EventCollectionChangeEventArgs__ctor_C1_C1Preview_EventCollectionChangeTypeEnum_System_Object_System_Object_System_Int32_" data-uid="C1.C1Preview.EventCollectionChangeEventArgs.#ctor(C1.C1Preview.EventCollectionChangeTypeEnum,System.Object,System.Object,System.Int32)">EventCollectionChangeEventArgs(EventCollectionChangeTypeEnum, object, object, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.EventCollectionChangeEventArgs.html">EventCollectionChangeEventArgs</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public EventCollectionChangeEventArgs(EventCollectionChangeTypeEnum changeType, object oldItem, object newItem, int index)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(changeType As EventCollectionChangeTypeEnum, oldItem As Object, newItem As Object, index As Integer)</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.C1Preview.EventCollectionChangeTypeEnum.html">EventCollectionChangeTypeEnum</a></td>
      <td><span class="parametername">changeType</span></td>
      <td><p>The collection change type.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">oldItem</span></td>
      <td><p>The old item, or null.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">newItem</span></td>
      <td><p>The new item, or null.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>The item index, or -1.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_EventCollectionChangeEventArgs__ctor_" data-uid="C1.C1Preview.EventCollectionChangeEventArgs.#ctor*"></a>
<h4 id="C1_C1Preview_EventCollectionChangeEventArgs__ctor" data-uid="C1.C1Preview.EventCollectionChangeEventArgs.#ctor">EventCollectionChangeEventArgs()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.EventCollectionChangeEventArgs.html">EventCollectionChangeEventArgs</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public EventCollectionChangeEventArgs()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>
</div>
