# C1.Ssrs.ServerConnection.ListChildren

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Ssrs_ServerConnection_ListChildren_" data-uid="C1.Ssrs.ServerConnection.ListChildren*">ListChildren Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Ssrs_ServerConnection_ListChildren_" data-uid="C1.Ssrs.ServerConnection.ListChildren*"></a>
<h4 id="C1_Ssrs_ServerConnection_ListChildren_System_String_System_Boolean_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ServerConnection.ListChildren(System.String,System.Boolean,System.Threading.CancellationToken)">ListChildren(string, bool, CancellationToken)</h4>
<div class="markdown level1 summary"><p>Gets a list of children of a specified folder.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CatalogItem[] ListChildren(string path, bool recursive, CancellationToken cancellationToken)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ListChildren(path As String, recursive As Boolean, cancellationToken As CancellationToken) As CatalogItem()</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">path</span></td>
      <td><p>The full path name of the parent folder.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">recursive</span></td>
      <td><p>A Boolean value that indicates whether to return the entire tree of child items below the specified item.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></td>
      <td><span class="parametername">cancellationToken</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a> that can be used to cancel a request.</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.ImportServices.ReportingService4.CatalogItem.html">CatalogItem</a>[]</td>
      <td><p>An array of CatalogItem objects. If no children exist, this method returns an empty CatalogItem object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
