# GrapeCity.ActiveReports.Core.Rendering.Data.IDbConnectionAdapter.SetConnectionString

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Core_Rendering_Data_IDbConnectionAdapter_SetConnectionString_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Data.IDbConnectionAdapter.SetConnectionString*">SetConnectionString Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rendering_Data_IDbConnectionAdapter_SetConnectionString_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Data.IDbConnectionAdapter.SetConnectionString*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rendering_Data_IDbConnectionAdapter_SetConnectionString_System_Data_Common_DbConnection_System_String_GrapeCity_ActiveReports_Core_Rendering_Data_DbConnectionAdapterContext_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Data.IDbConnectionAdapter.SetConnectionString(System.Data.Common.DbConnection,System.String,GrapeCity.ActiveReports.Core.Rendering.Data.DbConnectionAdapterContext)">SetConnectionString(DbConnection, string, DbConnectionAdapterContext)</h4>
<div class="markdown level1 summary"><p>Sets the connection string for the specified connection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetConnectionString(DbConnection connection, string connectionString, DbConnectionAdapterContext context)</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.data.common.dbconnection">DbConnection</a></td>
      <td><span class="parametername">connection</span></td>
      <td><p>The connection to set the connection string for.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">connectionString</span></td>
      <td><p>The connection string to set.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Data.DbConnectionAdapterContext.html">DbConnectionAdapterContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The additional context for the operation.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
