# C1.C1Preview.DataBinding.Query

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_DataBinding_Query" data-uid="C1.C1Preview.DataBinding.Query" class="text-break">Query Class
</h1>
  <div class="markdown level0 summary"><p>Describes a query that is executed to fetch data for a <a class="xref" href="C1.C1Preview.DataBinding.DataSet.html">DataSet</a>
(the query is specified by the <a class="xref" href="C1.C1Preview.DataBinding.DataSet.Query.html#C1_C1Preview_DataBinding_DataSet_Query">Query</a> property
on the data set object).</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"><span class="xref">Query</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.DataBinding.html">C1.C1Preview.DataBinding</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_DataBinding_Query_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public class Query</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public Class Query</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_C1Preview_DataBinding_Query__ctor" data-uid="C1.C1Preview.DataBinding.Query.#ctor">
          <a class="xref" href="C1.C1Preview.DataBinding.Query.-ctor.html#C1_C1Preview_DataBinding_Query__ctor">Query()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.DataBinding.Query.html">Query</a> class.</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_C1Preview_DataBinding_Query_CommandText" data-uid="C1.C1Preview.DataBinding.Query.CommandText">
          <a class="xref" href="C1.C1Preview.DataBinding.Query.CommandText.html#C1_C1Preview_DataBinding_Query_CommandText">CommandText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the command text that is executed to obtain the data.
The interpretation of this text depends on the query type
specified by the <a class="xref" href="C1.C1Preview.DataBinding.Query.CommandType.html#C1_C1Preview_DataBinding_Query_CommandType">CommandType</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DataBinding_Query_CommandType" data-uid="C1.C1Preview.DataBinding.Query.CommandType">
          <a class="xref" href="C1.C1Preview.DataBinding.Query.CommandType.html#C1_C1Preview_DataBinding_Query_CommandType">CommandType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of query assigned to the <a class="xref" href="C1.C1Preview.DataBinding.Query.CommandText.html#C1_C1Preview_DataBinding_Query_CommandText">CommandText</a> property
on the current query.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DataBinding_Query_DataSource" data-uid="C1.C1Preview.DataBinding.Query.DataSource">
          <a class="xref" href="C1.C1Preview.DataBinding.Query.DataSource.html#C1_C1Preview_DataBinding_Query_DataSource">DataSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.C1Preview.DataBinding.DataSource.html">DataSource</a> object
against which to execute the current query.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DataBinding_Query_Parameters" data-uid="C1.C1Preview.DataBinding.Query.Parameters">
          <a class="xref" href="C1.C1Preview.DataBinding.Query.Parameters.html#C1_C1Preview_DataBinding_Query_Parameters">Parameters</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of <a class="xref" href="C1.C1Preview.DataBinding.QueryParameter.html">QueryParameter</a> objects that are passed
to the data source as part of the current query.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DataBinding_Query_Timeout" data-uid="C1.C1Preview.DataBinding.Query.Timeout">
          <a class="xref" href="C1.C1Preview.DataBinding.Query.Timeout.html#C1_C1Preview_DataBinding_Query_Timeout">Timeout</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of seconds to allow the query to run
before timing out. Must be nonnegative. If
omitted or zero, the query should not time out.</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_C1Preview_DataBinding_Query_AssignFrom_C1_C1Preview_DataBinding_Query_" data-uid="C1.C1Preview.DataBinding.Query.AssignFrom(C1.C1Preview.DataBinding.Query)">
          <a class="xref" href="C1.C1Preview.DataBinding.Query.AssignFrom.html#C1_C1Preview_DataBinding_Query_AssignFrom_C1_C1Preview_DataBinding_Query_">AssignFrom(Query)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.DataBinding.Query.html">Query</a> to the current object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
