# C1.AdoNet.ServiceNow.C1ServiceNowCommand

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_AdoNet_ServiceNow_C1ServiceNowCommand" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand" class="text-break">C1ServiceNowCommand Class
</h1>
  <div class="markdown level0 summary"><p><a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.html">C1ServiceNowCommand</a> contains all the necessary information to fully specify a ServiceNow command and execute it.</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.dbcommand">DbCommand</a></div>
    <div class="level4"><a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1CommandBase.html">C1CommandBase</a></div>
    <div class="level5"><a class="xref" href="C1.DataConnector.AdoNet.C1CommandBase-1.html">C1CommandBase</a>&lt;<a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.html">C1ServiceNowCommand</a>&gt;</div>
    <div class="level6"><span class="xref">C1ServiceNowCommand</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.idbcommand">IDbCommand</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.AdoNet.ServiceNow.html">C1.AdoNet.ServiceNow</a></h6>
  <h6><strong>Assembly</strong>: C1.AdoNet.ServiceNow.dll</h6>
  <h5 id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class C1ServiceNowCommand : C1CommandBase&lt;C1ServiceNowCommand&gt;, IComponent, IDbCommand, IDisposable, IAsyncDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class C1ServiceNowCommand
    Inherits C1CommandBase(Of C1ServiceNowCommand)
    Implements IComponent, IDbCommand, IDisposable, IAsyncDisposable, ICloneable</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_ServiceNow_C1ServiceNowCommand__ctor" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.#ctor">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.-ctor.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand__ctor">C1ServiceNowCommand()</a>
        </td>
        <td class="markdown level1 summary"><p>Create a <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.html">C1ServiceNowCommand</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand__ctor_C1_AdoNet_ServiceNow_C1ServiceNowConnection_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.#ctor(C1.AdoNet.ServiceNow.C1ServiceNowConnection)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.-ctor.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand__ctor_C1_AdoNet_ServiceNow_C1ServiceNowConnection_">C1ServiceNowCommand(C1ServiceNowConnection)</a>
        </td>
        <td class="markdown level1 summary"><p>Create a <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.html">C1ServiceNowCommand</a> instance with a connection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand__ctor_C1_AdoNet_ServiceNow_C1ServiceNowConnection_System_String_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.#ctor(C1.AdoNet.ServiceNow.C1ServiceNowConnection,System.String)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.-ctor.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand__ctor_C1_AdoNet_ServiceNow_C1ServiceNowConnection_System_String_">C1ServiceNowCommand(C1ServiceNowConnection, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Create a <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.html">C1ServiceNowCommand</a> instance with a connection and a command text.</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_ServiceNow_C1ServiceNowCommand_CanGetNextData" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.CanGetNextData">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.CanGetNextData.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_CanGetNextData">CanGetNextData</a>
        </td>
        <td class="markdown level1 summary"><p>To check whether or not more data can be retrieved from the source as the result of executing this <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.html">C1ServiceNowCommand</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_CommandTimeout" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.CommandTimeout">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.CommandTimeout.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_CommandTimeout">CommandTimeout</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the wait time before terminating the attempt to execute a command and generating an error.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_CommandType" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.CommandType">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.CommandType.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_CommandType">CommandType</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates or specifies how the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbcommand.commandtext">CommandText</a> property is interpreted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_DbConnection" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.DbConnection">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.DbConnection.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_DbConnection">DbConnection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbconnection">DbConnection</a> used by this <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbcommand">DbCommand</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_DesignTimeVisible" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.DesignTimeVisible">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.DesignTimeVisible.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_DesignTimeVisible">DesignTimeVisible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the command object should be visible in a customized interface control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_UpdatedRowSource" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.UpdatedRowSource">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.UpdatedRowSource.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_UpdatedRowSource">UpdatedRowSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how command results are applied to the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datarow">DataRow</a> when used by the Update method of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbdataadapter">DbDataAdapter</a>.</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_ServiceNow_C1ServiceNowCommand_ExecuteBatchCoreAsync_System_Collections_Generic_IList_C1_DataConnector_ISQLStatement__System_Threading_CancellationToken_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.ExecuteBatchCoreAsync(System.Collections.Generic.IList{C1.DataConnector.ISQLStatement},System.Threading.CancellationToken)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.ExecuteBatchCoreAsync.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_ExecuteBatchCoreAsync_System_Collections_Generic_IList_C1_DataConnector_ISQLStatement__System_Threading_CancellationToken_">ExecuteBatchCoreAsync(IList&lt;ISQLStatement&gt;, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Execute a list of nonquery in Batch.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_ExecuteNonQueryCoreAsync_C1_DataConnector_ISQLStatement_System_Threading_CancellationToken_C1_DataConnector_SourceTable_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.ExecuteNonQueryCoreAsync(C1.DataConnector.ISQLStatement,System.Threading.CancellationToken,C1.DataConnector.SourceTable)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.ExecuteNonQueryCoreAsync.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_ExecuteNonQueryCoreAsync_C1_DataConnector_ISQLStatement_System_Threading_CancellationToken_C1_DataConnector_SourceTable_">ExecuteNonQueryCoreAsync(ISQLStatement, CancellationToken, SourceTable)</a>
        </td>
        <td class="markdown level1 summary"><p>The core method provided to execute a non-query statement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_ExecutePrimitiveSqlAsync_C1_DataConnector_SelectStatement_System_Threading_CancellationToken_System_Boolean_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.ExecutePrimitiveSqlAsync(C1.DataConnector.SelectStatement,System.Threading.CancellationToken,System.Boolean)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.ExecutePrimitiveSqlAsync.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_ExecutePrimitiveSqlAsync_C1_DataConnector_SelectStatement_System_Threading_CancellationToken_System_Boolean_">ExecutePrimitiveSqlAsync(SelectStatement, CancellationToken, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Execute <code class="paramref">select</code> directly in the ServiceNow server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_GetNextResultAsync_System_Threading_CancellationToken_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.GetNextResultAsync(System.Threading.CancellationToken)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.GetNextResultAsync.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_GetNextResultAsync_System_Threading_CancellationToken_">GetNextResultAsync(CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Request to get more rows result considering the last executed command.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_GetRequiredColumnNames_System_String_System_Collections_Generic_IList_C1_DataConnector_AssignExpression__" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.GetRequiredColumnNames(System.String,System.Collections.Generic.IList{C1.DataConnector.AssignExpression})">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.GetRequiredColumnNames.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_GetRequiredColumnNames_System_String_System_Collections_Generic_IList_C1_DataConnector_AssignExpression__">GetRequiredColumnNames(string, IList&lt;AssignExpression&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Get the column names used to identify a specific row into update/delete query.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_Prepare" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.Prepare">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.Prepare.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_Prepare">Prepare()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a prepared (or compiled) version of the command on the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportColumnExpression_C1_DataConnector_SelectStatement_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportColumnExpression(C1.DataConnector.SelectStatement)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportColumnExpression.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportColumnExpression_C1_DataConnector_SelectStatement_">SupportColumnExpression(SelectStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>To check whether or not <code class="paramref">selectStatement</code> can be executed directly on the
ServiceNow server considering the selected column expressions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportDelete_C1_DataConnector_DeleteStatement_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportDelete(C1.DataConnector.DeleteStatement)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportDelete.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportDelete_C1_DataConnector_DeleteStatement_">SupportDelete(DeleteStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>To check whether or not <code class="paramref">deleteStatement</code> can be executed directly on the ServiceNow server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportGroupBy_C1_DataConnector_GroupbyClause_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportGroupBy(C1.DataConnector.GroupbyClause)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportGroupBy.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportGroupBy_C1_DataConnector_GroupbyClause_">SupportGroupBy(GroupbyClause)</a>
        </td>
        <td class="markdown level1 summary"><p>To check whether or not <code class="paramref">groupby</code> can be executed directly on the ServiceNow server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportInsert_C1_DataConnector_InsertStatement_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportInsert(C1.DataConnector.InsertStatement)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportInsert.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportInsert_C1_DataConnector_InsertStatement_">SupportInsert(InsertStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>To check or not if <code class="paramref">insertStatement</code> can be executed directly on the ServiceNow server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportJoin_C1_DataConnector_SelectStatement_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportJoin(C1.DataConnector.SelectStatement)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportJoin.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportJoin_C1_DataConnector_SelectStatement_">SupportJoin(SelectStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>To check whether or not joinStatement can be executed directly on the ServiceNow server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportUpdate_C1_DataConnector_UpdateStatement_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportUpdate(C1.DataConnector.UpdateStatement)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportUpdate.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportUpdate_C1_DataConnector_UpdateStatement_">SupportUpdate(UpdateStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>To check whether or not <code class="paramref">updateStatement</code> can be executed directly on the ServiceNow server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportWhere_C1_DataConnector_IExpression_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportWhere(C1.DataConnector.IExpression)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.SupportWhere.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_SupportWhere_C1_DataConnector_IExpression_">SupportWhere(IExpression)</a>
        </td>
        <td class="markdown level1 summary"><p>To check whether or not <code class="paramref">where</code> can be executed directly on the ServiceNow server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_ServiceNow_C1ServiceNowCommand_ValidateStatement_C1_DataConnector_ISQLStatement_" data-uid="C1.AdoNet.ServiceNow.C1ServiceNowCommand.ValidateStatement(C1.DataConnector.ISQLStatement)">
          <a class="xref" href="C1.AdoNet.ServiceNow.C1ServiceNowCommand.ValidateStatement.html#C1_AdoNet_ServiceNow_C1ServiceNowCommand_ValidateStatement_C1_DataConnector_ISQLStatement_">ValidateStatement(ISQLStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>Validate for all type of statement.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
