# C1.Ssrs.ServerConnection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Ssrs_ServerConnection" data-uid="C1.Ssrs.ServerConnection" class="text-break">ServerConnection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a connection to the SSRS server can be used to execute methods available
via ReportingService.asmx service.</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.Ssrs.ConnectionBase.html">ConnectionBase</a></div>
    <div class="level2"><span class="xref">ServerConnection</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.Ssrs.html">C1.Ssrs</a></h6>
  <h6><strong>Assembly</strong>: C1.Document.dll</h6>
  <h5 id="C1_Ssrs_ServerConnection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ServerConnection : ConnectionBase, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ServerConnection
    Inherits ConnectionBase
    Implements IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Ssrs_ServerConnection__ctor" data-uid="C1.Ssrs.ServerConnection.#ctor">
          <a class="xref" href="C1.Ssrs.ServerConnection.-ctor.html#C1_Ssrs_ServerConnection__ctor">ServerConnection()</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_Ssrs_ServerConnection_Dispose" data-uid="C1.Ssrs.ServerConnection.Dispose">
          <a class="xref" href="C1.Ssrs.ServerConnection.Dispose.html#C1_Ssrs_ServerConnection_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Releases all resources used by the <a class="xref" href="C1.Ssrs.ServerConnection.html">ServerConnection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ServerConnection_GetItemType_System_String_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ServerConnection.GetItemType(System.String,System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ServerConnection.GetItemType.html#C1_Ssrs_ServerConnection_GetItemType_System_String_System_Threading_CancellationToken_">GetItemType(string, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the type of an item in the report server database, if the item exists.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="C1.Ssrs.ServerConnection.ListChildren.html#C1_Ssrs_ServerConnection_ListChildren_System_String_System_Boolean_System_Threading_CancellationToken_">ListChildren(string, bool, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a list of children of a specified folder.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ServerConnection_ListChildrenAsync_System_String_System_Boolean_System_Threading_CancellationToken_" data-uid="C1.Ssrs.ServerConnection.ListChildrenAsync(System.String,System.Boolean,System.Threading.CancellationToken)">
          <a class="xref" href="C1.Ssrs.ServerConnection.ListChildrenAsync.html#C1_Ssrs_ServerConnection_ListChildrenAsync_System_String_System_Boolean_System_Threading_CancellationToken_">ListChildrenAsync(string, bool, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Async version of <a class="xref" href="C1.Ssrs.ServerConnection.ListChildren.html#C1_Ssrs_ServerConnection_ListChildren_System_String_System_Boolean_System_Threading_CancellationToken_">ListChildren(string, bool, CancellationToken)</a> method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Ssrs_ServerConnection_SetConnectionOptions_System_String_C1_Ssrs_ConnectionOptions_" data-uid="C1.Ssrs.ServerConnection.SetConnectionOptions(System.String,C1.Ssrs.ConnectionOptions)">
          <a class="xref" href="C1.Ssrs.ServerConnection.SetConnectionOptions.html#C1_Ssrs_ServerConnection_SetConnectionOptions_System_String_C1_Ssrs_ConnectionOptions_">SetConnectionOptions(string, ConnectionOptions)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the current connection options.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
