# GrapeCity.ActiveReports.PageReportModel.QueryParameter

## Content

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



  <h1 id="GrapeCity_ActiveReports_PageReportModel_QueryParameter" data-uid="GrapeCity.ActiveReports.PageReportModel.QueryParameter" class="text-break">QueryParameter Class
</h1>
  <div class="markdown level0 summary"><p>Represents a QueryParameter element of a <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Query.html">Query</a>, containing information about a parameter passed to the data source as part of the query.</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">QueryParameter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IValidateable.html">IValidateable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.html">GrapeCity.ActiveReports.PageReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_QueryParameter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class QueryParameter : IValidateable</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_QueryParameter_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Query parameters are used to dynamically filter data retrieved from the data source by passing user-provided or calculated values.</p>
</div>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_QueryParameter_examples"><strong>Examples</strong></h5>
  <pre><code class="lang-csharp">QueryParameter queryParam = new QueryParameter { Name = "StartDate", Value = "=Parameters!StartDate.Value" };</code></pre>

  <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="GrapeCity_ActiveReports_PageReportModel_QueryParameter__ctor" data-uid="GrapeCity.ActiveReports.PageReportModel.QueryParameter.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.QueryParameter.-ctor.html#GrapeCity_ActiveReports_PageReportModel_QueryParameter__ctor">QueryParameter()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.QueryParameter.html">QueryParameter</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="GrapeCity_ActiveReports_PageReportModel_QueryParameter_Name" data-uid="GrapeCity.ActiveReports.PageReportModel.QueryParameter.Name">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.QueryParameter.Name.html#GrapeCity_ActiveReports_PageReportModel_QueryParameter_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a name for the parameter.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_QueryParameter_Value" data-uid="GrapeCity.ActiveReports.PageReportModel.QueryParameter.Value">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.QueryParameter.Value.html#GrapeCity_ActiveReports_PageReportModel_QueryParameter_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an expression that evaluates to the parameter value to pass to the data source.</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="GrapeCity_ActiveReports_PageReportModel_QueryParameter_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_" data-uid="GrapeCity.ActiveReports.PageReportModel.QueryParameter.Validate(GrapeCity.ActiveReports.PageReportModel.ValidationContext)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.QueryParameter.Validate.html#GrapeCity_ActiveReports_PageReportModel_QueryParameter_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_">Validate(ValidationContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the current state of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.QueryParameter.html">QueryParameter</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>

</div>
