# C1.Web.Api.Report.ReportProviderManager.AddSsrsReportHost

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Api_Report_ReportProviderManager_AddSsrsReportHost_" data-uid="C1.Web.Api.Report.ReportProviderManager.AddSsrsReportHost*">AddSsrsReportHost Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Api_Report_ReportProviderManager_AddSsrsReportHost_" data-uid="C1.Web.Api.Report.ReportProviderManager.AddSsrsReportHost*"></a>
<h4 id="C1_Web_Api_Report_ReportProviderManager_AddSsrsReportHost_System_String_C1_Web_Api_Report_SsrsHost_" data-uid="C1.Web.Api.Report.ReportProviderManager.AddSsrsReportHost(System.String,C1.Web.Api.Report.SsrsHost)">AddSsrsReportHost(string, SsrsHost)</h4>
<div class="markdown level1 summary"><p>Add <a class="xref" href="C1.Web.Api.Report.SsrsHost.html">SsrsHost</a> for SSRS report to current <a class="xref" href="C1.Web.Api.Report.ReportProviderManager.html">ReportProviderManager</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ReportProviderManager AddSsrsReportHost(string key, SsrsHost host)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddSsrsReportHost(key As String, host As SsrsHost) As ReportProviderManager</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">key</span></td>
      <td><p>The provider key act as the alias name of the SSRS host.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Web.Api.Report.SsrsHost.html">SsrsHost</a></td>
      <td><span class="parametername">host</span></td>
      <td><p>The <a class="xref" href="C1.Web.Api.Report.SsrsHost.html">SsrsHost</a>.</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.Web.Api.Report.ReportProviderManager.html">ReportProviderManager</a></td>
      <td><p>The <a class="xref" href="C1.Web.Api.Report.ReportProviderManager.html">ReportProviderManager</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Api_Report_ReportProviderManager_AddSsrsReportHost_" data-uid="C1.Web.Api.Report.ReportProviderManager.AddSsrsReportHost*"></a>
<h4 id="C1_Web_Api_Report_ReportProviderManager_AddSsrsReportHost_System_String_System_String_System_Net_NetworkCredential_C1_Web_Api_Report_AuthenticationType_System_Int32_" data-uid="C1.Web.Api.Report.ReportProviderManager.AddSsrsReportHost(System.String,System.String,System.Net.NetworkCredential,C1.Web.Api.Report.AuthenticationType,System.Int32)">AddSsrsReportHost(string, string, NetworkCredential, AuthenticationType, int)</h4>
<div class="markdown level1 summary"><p>Add an SSRS host for SSRS report to current <a class="xref" href="C1.Web.Api.Report.ReportProviderManager.html">ReportProviderManager</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ReportProviderManager AddSsrsReportHost(string key, string serviceUrl, NetworkCredential credential = null, AuthenticationType authenticationType = AuthenticationType.Ntlm, int timeout = 600000)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddSsrsReportHost(key As String, serviceUrl As String, Optional credential As NetworkCredential = Nothing, Optional authenticationType As AuthenticationType = AuthenticationType.Ntlm, Optional timeout As Integer = 600000) As ReportProviderManager</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">key</span></td>
      <td><p>The provider key act as the alias name of the SSRS host.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">serviceUrl</span></td>
      <td><p>The url of the SSRS web service.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.net.networkcredential">NetworkCredential</a></td>
      <td><span class="parametername">credential</span></td>
      <td><p>The credential used in SSRS connection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Web.Api.Report.AuthenticationType.html">AuthenticationType</a></td>
      <td><span class="parametername">authenticationType</span></td>
      <td><p>The type of authentication used in SSRS connection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">timeout</span></td>
      <td><p>The number of milliseconds to wait for server communications.</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.Web.Api.Report.ReportProviderManager.html">ReportProviderManager</a></td>
      <td><p>The <a class="xref" href="C1.Web.Api.Report.ReportProviderManager.html">ReportProviderManager</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
