# C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder" class="text-break">C1OAuthConnectionStringBuilder Class
</h1>
  <div class="markdown level0 summary"><p>The base class for all providers containing the OAuth2 information to set up a connection.</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.data.common.dbconnectionstringbuilder">DbConnectionStringBuilder</a></div>
    <div class="level2"><a class="xref" href="../C1.DataConnector/C1.DataConnector.C1ConnectionStringBuilder.html">C1ConnectionStringBuilder</a></div>
    <div class="level3"><span class="xref">C1OAuthConnectionStringBuilder</span></div>
      <div class="level4"><a class="xref" href="../C1.AdoNet.CSV/C1.AdoNet.CSV.C1CSVConnectionStringBuilder.html">C1CSVConnectionStringBuilder</a></div>
      <div class="level4"><a class="xref" href="../C1.AdoNet.D365S/C1.AdoNet.D365S.C1D365SConnectionStringBuilder.html">C1D365SConnectionStringBuilder</a></div>
      <div class="level4"><a class="xref" href="../C1.AdoNet.Json/C1.AdoNet.Json.C1JsonConnectionStringBuilder.html">C1JsonConnectionStringBuilder</a></div>
      <div class="level4"><a class="xref" href="../C1.AdoNet.OData/C1.AdoNet.OData.C1ODataConnectionStringBuilder.html">C1ODataConnectionStringBuilder</a></div>
      <div class="level4"><a class="xref" href="../C1.AdoNet.QuickBooksOnline/C1.AdoNet.QuickBooksOnline.C1QuickBooksOnlineConnectionStringBuilder.html">C1QuickBooksOnlineConnectionStringBuilder</a></div>
      <div class="level4"><a class="xref" href="../C1.AdoNet.Salesforce/C1.AdoNet.Salesforce.C1SalesforceConnectionStringBuilder.html">C1SalesforceConnectionStringBuilder</a></div>
      <div class="level4"><a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowConnectionStringBuilder.html">C1ServiceNowConnectionStringBuilder</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.idictionary">IDictionary</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icustomtypedescriptor">ICustomTypeDescriptor</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.DataConnector.AdoNet.html">C1.DataConnector.AdoNet</a></h6>
  <h6><strong>Assembly</strong>: C1.AdoNet.ServiceNow.dll</h6>
  <h5 id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1OAuthConnectionStringBuilder : C1ConnectionStringBuilder, IDictionary, ICollection, IEnumerable, ICustomTypeDescriptor</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1OAuthConnectionStringBuilder
    Inherits C1ConnectionStringBuilder
    Implements IDictionary, ICollection, IEnumerable, ICustomTypeDescriptor</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_DataConnector_AdoNet_C1OAuthConnectionStringBuilder__ctor" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.#ctor">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.-ctor.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder__ctor">C1OAuthConnectionStringBuilder()</a>
        </td>
        <td class="markdown level1 summary"><p>The default constructor of <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.html">C1OAuthConnectionStringBuilder</a>.</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_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_Domain" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.Domain">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.Domain.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_Domain">Domain</a>
        </td>
        <td class="markdown level1 summary"><p>The domain or computer name that verifies the credentials.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_Item_System_String_" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.Item(System.String)">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.Item.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value associated with the specified key.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthAccessToken" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthAccessToken">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthAccessToken.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthAccessToken">OAuthAccessToken</a>
        </td>
        <td class="markdown level1 summary"><p>The OAuth 2.0 access token to be used for the authentication.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthClientId" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthClientId">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthClientId.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthClientId">OAuthClientId</a>
        </td>
        <td class="markdown level1 summary"><p>The id of the OAuth 2.0 Client to be used for the authentication.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthClientSecret" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthClientSecret">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthClientSecret.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthClientSecret">OAuthClientSecret</a>
        </td>
        <td class="markdown level1 summary"><p>The secret of the OAuth 2.0 Client to be used for the authentication.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthExtendProperties" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthExtendProperties">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthExtendProperties.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthExtendProperties">OAuthExtendProperties</a>
        </td>
        <td class="markdown level1 summary"><p>The extend properties for the OAuth 2.0 authentication request.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthGrantType" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthGrantType">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthGrantType.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthGrantType">OAuthGrantType</a>
        </td>
        <td class="markdown level1 summary"><p>The extend properties for the OAuth 2.0 authentication request.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthRefreshToken" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthRefreshToken">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthRefreshToken.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthRefreshToken">OAuthRefreshToken</a>
        </td>
        <td class="markdown level1 summary"><p>The OAuth 2.0 refresh token to be used for the authentication.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthScope" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthScope">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthScope.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthScope">OAuthScope</a>
        </td>
        <td class="markdown level1 summary"><p>The scope for the OAuth 2.0 authentication request.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthTokenEndpoint" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthTokenEndpoint">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.OAuthTokenEndpoint.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_OAuthTokenEndpoint">OAuthTokenEndpoint</a>
        </td>
        <td class="markdown level1 summary"><p>The OAuth 2.0 token endpoint to be used for the authentication.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_Password" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.Password">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.Password.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_Password">Password</a>
        </td>
        <td class="markdown level1 summary"><p>The password of the user to be used for the authentication.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_Username" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.Username">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.Username.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_Username">Username</a>
        </td>
        <td class="markdown level1 summary"><p>The username to be used for the authentication.</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_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_Equals_System_Object_" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.Equals(System.Object)">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.Equals.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Method that check if two instance <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.html">C1OAuthConnectionStringBuilder</a> can be considered equals
considering pooling and caching connection purposes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_GetHashCode" data-uid="C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.GetHashCode">
          <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.GetHashCode.html#C1_DataConnector_AdoNet_C1OAuthConnectionStringBuilder_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieve the mapped hash code of this <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1OAuthConnectionStringBuilder.html">C1OAuthConnectionStringBuilder</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
