# C1.Ssrs.ReportSession.SetConnectionOptions

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Ssrs_ReportSession_SetConnectionOptions_" data-uid="C1.Ssrs.ReportSession.SetConnectionOptions*">SetConnectionOptions Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Ssrs_ReportSession_SetConnectionOptions_" data-uid="C1.Ssrs.ReportSession.SetConnectionOptions*"></a>
<h4 id="C1_Ssrs_ReportSession_SetConnectionOptions_System_String_C1_Ssrs_ConnectionOptions_" data-uid="C1.Ssrs.ReportSession.SetConnectionOptions(System.String,C1.Ssrs.ConnectionOptions)">SetConnectionOptions(string, ConnectionOptions)</h4>
<div class="markdown level1 summary"><p>Sets the current connection options.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void SetConnectionOptions(string reportServer, ConnectionOptions connectionOptions)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub SetConnectionOptions(reportServer As String, connectionOptions As ConnectionOptions)</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">reportServer</span></td>
      <td><p>Address of SSRS server, like <a href="http://www.site.com/ReportServer">http://www.site.com/ReportServer</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Ssrs.ConnectionOptions.html">ConnectionOptions</a></td>
      <td><span class="parametername">connectionOptions</span></td>
      <td><p><a class="xref" href="C1.Ssrs.ConnectionOptions.html">ConnectionOptions</a> object defines type of authentication, credential etc.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Ssrs.ConnectionBase.SetConnectionOptions.html#C1_Ssrs_ConnectionBase_SetConnectionOptions_System_String_C1_Ssrs_ConnectionOptions_">ConnectionBase.SetConnectionOptions(string, ConnectionOptions)</a></div>
</div>
