# C1.DataConnector.SharedUtils.GenerateHierarchyList

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataConnector_SharedUtils_GenerateHierarchyList_" data-uid="C1.DataConnector.SharedUtils.GenerateHierarchyList*">GenerateHierarchyList Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataConnector_SharedUtils_GenerateHierarchyList_" data-uid="C1.DataConnector.SharedUtils.GenerateHierarchyList*"></a>
<h4 id="C1_DataConnector_SharedUtils_GenerateHierarchyList_C1_DataConnector_IExpression_System_Object_System_String_System_String_System_Collections_Generic_List_System_String__" data-uid="C1.DataConnector.SharedUtils.GenerateHierarchyList(C1.DataConnector.IExpression,System.Object,System.String,System.String,System.Collections.Generic.List{System.String})">GenerateHierarchyList(IExpression, object, string, string, List&lt;string&gt;)</h4>
<div class="markdown level1 summary"><p>Generates a list of properties based on hierarchy attribute conditions and property values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static List&lt;string&gt; GenerateHierarchyList(IExpression attribute, object propertyValue, string propertyName, string keyword, List&lt;string&gt; hierarchy = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GenerateHierarchyList(attribute As IExpression, propertyValue As Object, propertyName As String, keyword As String, Optional hierarchy As List(Of String) = Nothing) As List(Of 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="C1.DataConnector.IExpression.html">IExpression</a></td>
      <td><span class="parametername">attribute</span></td>
      <td><p>Hierarchy attribute expression.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">propertyValue</span></td>
      <td><p>Value of the property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">propertyName</span></td>
      <td><p>Name of the property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">keyword</span></td>
      <td><p>Keyword representing the connection string property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
      <td><span class="parametername">hierarchy</span></td>
      <td><p>List of properties with hierarchy attributes.</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="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
      <td><p>List of properties with hierarchy attributes.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
