# C1.WPF.RulesManager.RulesCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RulesManager_RulesCollection" data-uid="C1.WPF.RulesManager.RulesCollection" class="text-break">RulesCollection Class
</h1>
  <div class="markdown level0 summary"><p>Collection of rules of <a class="xref" href="C1.WPF.RulesManager.C1RulesEngine.html">C1RulesEngine</a>.</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.WPF.RulesManager.C1CachedDataCollectionList-1.html">C1CachedDataCollectionList</a>&lt;<a class="xref" href="C1.WPF.RulesManager.RulesEngineRule.html">RulesEngineRule</a>&gt;</div>
    <div class="level2"><span class="xref">RulesCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.RulesManager.html">C1.WPF.RulesManager</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.RulesManager.dll</h6>
  <h5 id="C1_WPF_RulesManager_RulesCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RulesCollection : C1CachedDataCollectionList&lt;RulesEngineRule&gt;, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RulesCollection
    Inherits C1CachedDataCollectionList(Of RulesEngineRule)
    Implements IDisposable</code></pre>
  </div>
  <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_WPF_RulesManager_RulesCollection_DataCollection" data-uid="C1.WPF.RulesManager.RulesCollection.DataCollection">
          <a class="xref" href="C1.WPF.RulesManager.RulesCollection.DataCollection.html#C1_WPF_RulesManager_RulesCollection_DataCollection">DataCollection</a>
        </td>
        <td class="markdown level1 summary"></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_WPF_RulesManager_RulesCollection_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_" data-uid="C1.WPF.RulesManager.RulesCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)">
          <a class="xref" href="C1.WPF.RulesManager.RulesCollection.OnCollectionChanged.html#C1_WPF_RulesManager_RulesCollection_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_">OnCollectionChanged(NotifyCollectionChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesCollection_OnItemLoaded_System_Object_C1_DataCollection_CacheDataCollectionItemEventArgs_C1_WPF_RulesManager_RulesEngineRule__" data-uid="C1.WPF.RulesManager.RulesCollection.OnItemLoaded(System.Object,C1.DataCollection.CacheDataCollectionItemEventArgs{C1.WPF.RulesManager.RulesEngineRule})">
          <a class="xref" href="C1.WPF.RulesManager.RulesCollection.OnItemLoaded.html#C1_WPF_RulesManager_RulesCollection_OnItemLoaded_System_Object_C1_DataCollection_CacheDataCollectionItemEventArgs_C1_WPF_RulesManager_RulesEngineRule__">OnItemLoaded(object, CacheDataCollectionItemEventArgs&lt;RulesEngineRule&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when an item is loaded into the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesCollection_OnItemUnloaded_System_Object_C1_DataCollection_CacheDataCollectionItemEventArgs_C1_WPF_RulesManager_RulesEngineRule__" data-uid="C1.WPF.RulesManager.RulesCollection.OnItemUnloaded(System.Object,C1.DataCollection.CacheDataCollectionItemEventArgs{C1.WPF.RulesManager.RulesEngineRule})">
          <a class="xref" href="C1.WPF.RulesManager.RulesCollection.OnItemUnloaded.html#C1_WPF_RulesManager_RulesCollection_OnItemUnloaded_System_Object_C1_DataCollection_CacheDataCollectionItemEventArgs_C1_WPF_RulesManager_RulesEngineRule__">OnItemUnloaded(object, CacheDataCollectionItemEventArgs&lt;RulesEngineRule&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when an item is unloaded from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
