# C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection" class="text-break">C1GoogleAnalyticsConnection Class
</h1>
  <div class="markdown level0 summary"><pre><code>&lt;xref href=&quot;C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; represents a connection to a GoogleAnalytics server. 
</code></pre>
<p>The connection can be used to query the data hosted by the server or request modifications.</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="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbconnection">DbConnection</a></div>
    <div class="level4"><a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1ConnectionBase.html">C1ConnectionBase</a></div>
    <div class="level5"><a class="xref" href="C1.DataConnector.AdoNet.C1ConnectionBase-1.html">C1ConnectionBase</a>&lt;<a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.html">C1GoogleAnalyticsConnection</a>&gt;</div>
    <div class="level6"><span class="xref">C1GoogleAnalyticsConnection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.idbconnection">IDbConnection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iasyncdisposable">IAsyncDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.AdoNet.GoogleAnalytics.html">C1.AdoNet.GoogleAnalytics</a></h6>
  <h6><strong>Assembly</strong>: C1.AdoNet.GoogleAnalytics.dll</h6>
  <h5 id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class C1GoogleAnalyticsConnection : C1ConnectionBase&lt;C1GoogleAnalyticsConnection&gt;, IComponent, IDbConnection, IDisposable, IAsyncDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class C1GoogleAnalyticsConnection
    Inherits C1ConnectionBase(Of C1GoogleAnalyticsConnection)
    Implements IComponent, IDbConnection, IDisposable, IAsyncDisposable</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_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection__ctor" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.#ctor">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.-ctor.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection__ctor">C1GoogleAnalyticsConnection()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.html">C1GoogleAnalyticsConnection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection__ctor_C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnectionStringBuilder_" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.#ctor(C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnectionStringBuilder)">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.-ctor.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection__ctor_C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnectionStringBuilder_">C1GoogleAnalyticsConnection(C1GoogleAnalyticsConnectionStringBuilder)</a>
        </td>
        <td class="markdown level1 summary"><p>Initialize a new <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.html">C1GoogleAnalyticsConnection</a> instance using the specified connection string
expressed in a <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnectionStringBuilder.html">C1GoogleAnalyticsConnectionStringBuilder</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection__ctor_System_String_" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.#ctor(System.String)">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.-ctor.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection__ctor_System_String_">C1GoogleAnalyticsConnection(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initialize a new <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.html">C1GoogleAnalyticsConnection</a> instance using the specified connection string.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Credential" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Credential">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Credential.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Credential">Credential</a>
        </td>
        <td class="markdown level1 summary"><p>The credential for authorizing calls using OAuth 2.0.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_DataSource" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.DataSource">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.DataSource.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_DataSource">DataSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the name of the database server to which to connect.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Database" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Database">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Database.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Database">Database</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the name of the current database after a connection is opened,
or the database name specified in the connection string before the connection is opened.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_DbProviderFactory" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.DbProviderFactory">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.DbProviderFactory.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_DbProviderFactory">DbProviderFactory</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.DbProviderFactory.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_DbProviderFactory">DbProviderFactory</a> for this connection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_KeyFile" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.KeyFile">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.KeyFile.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_KeyFile">KeyFile</a>
        </td>
        <td class="markdown level1 summary"><p>The key file containing service account credentials in JSON format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_ServerVersion" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.ServerVersion">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.ServerVersion.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_ServerVersion">ServerVersion</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a string that represents the version of the server to which the object is connected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Service" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Service">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Service.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Service">Service</a>
        </td>
        <td class="markdown level1 summary"><p>The service for account requests.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_ViewId" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.ViewId">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.ViewId.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_ViewId">ViewId</a>
        </td>
        <td class="markdown level1 summary"><p>The view id from which to retrieve data.</p>
</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_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_BeginDbTransaction_System_Data_IsolationLevel_" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.BeginDbTransaction(System.Data.IsolationLevel)">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.BeginDbTransaction.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_BeginDbTransaction_System_Data_IsolationLevel_">BeginDbTransaction(IsolationLevel)</a>
        </td>
        <td class="markdown level1 summary"><p>Begins a transaction on the connection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_ChangeDatabase_System_String_" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.ChangeDatabase(System.String)">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.ChangeDatabase.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_ChangeDatabase_System_String_">ChangeDatabase(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Changes the current database for an open connection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Close" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Close">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Close.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Close">Close()</a>
        </td>
        <td class="markdown level1 summary"><p>Closes the connection to the database. This is the preferred method of closing any open connection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_CreateDbCommand" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.CreateDbCommand">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.CreateDbCommand.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_CreateDbCommand">CreateDbCommand()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbcommand">DbCommand</a> object associated with the current connection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetColumnsSchema_System_String___" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetColumnsSchema(System.String[])">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetColumnsSchema.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetColumnsSchema_System_String___">GetColumnsSchema(string[])</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieve the metadata relatively to the columns.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetIndexColumns_System_String___" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetIndexColumns(System.String[])">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetIndexColumns.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetIndexColumns_System_String___">GetIndexColumns(string[])</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieve the metadata relatively to the index columns.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetIndexesSchema_System_String___" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetIndexesSchema(System.String[])">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetIndexesSchema.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetIndexesSchema_System_String___">GetIndexesSchema(string[])</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieve the metadata relatively to the indexes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetPrimaryKeySchema_System_String___" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetPrimaryKeySchema(System.String[])">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetPrimaryKeySchema.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetPrimaryKeySchema_System_String___">GetPrimaryKeySchema(string[])</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieve the metadata relatively to the primary keys.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetTablesSchema_System_String___" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetTablesSchema(System.String[])">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetTablesSchema.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetTablesSchema_System_String___">GetTablesSchema(string[])</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieve the metadata relatively to the tables.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetViewsSchema_System_String___" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetViewsSchema(System.String[])">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.GetViewsSchema.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_GetViewsSchema_System_String___">GetViewsSchema(string[])</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieve the metadata relatively to the views.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_OnConnectionStringChanged" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.OnConnectionStringChanged">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.OnConnectionStringChanged.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_OnConnectionStringChanged">OnConnectionStringChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>A method that is executed everytime that the connection string used by this <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnectionStringBuilder.html">C1GoogleAnalyticsConnectionStringBuilder</a> has changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Open" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Open">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Open.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Open">Open()</a>
        </td>
        <td class="markdown level1 summary"><p>Opens a database connection with the settings specified by the connection string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_OpenAsync_System_Threading_CancellationToken_" data-uid="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.OpenAsync(System.Threading.CancellationToken)">
          <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.OpenAsync.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_OpenAsync_System_Threading_CancellationToken_">OpenAsync(CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>An asynchronous version of <a class="xref" href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection.Open.html#C1_AdoNet_GoogleAnalytics_C1GoogleAnalyticsConnection_Open">Open()</a> open.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
