# GrapeCity.ActiveReports.Viewer.Win.ReportParameter.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_Viewer_Win_ReportParameter__ctor_" data-uid="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.#ctor*">ReportParameter Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Viewer_Win_ReportParameter__ctor_" data-uid="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Win_ReportParameter__ctor_System_String_System_Object_" data-uid="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.#ctor(System.String,System.Object)">ReportParameter(string, object)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.html">ReportParameter</a> class with a single value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ReportParameter(string name, object value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The name of the report parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value of the report parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Viewer_Win_ReportParameter__ctor_" data-uid="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Win_ReportParameter__ctor_System_String_System_Collections_Generic_ICollection_System_Object__" data-uid="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.#ctor(System.String,System.Collections.Generic.ICollection{System.Object})">ReportParameter(string, ICollection&lt;object&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.html">ReportParameter</a> class with multiple values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ReportParameter(string name, ICollection&lt;object&gt; values)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The name of the report parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">values</span></td>
      <td><p>The collection of values for the report parameter.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Viewer_Win_ReportParameter__ctor_System_String_System_Collections_Generic_ICollection_System_Object___examples">Examples</h5>
<p>This snippet shows how to create a new <a class="xref" href="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.html">ReportParameter</a>.</p>
<pre><code class="lang-csharp">List&lt;object&gt; values = new List&lt;object&gt; { 1, 2, 3, "Hello", DateTime.Now };
ReportParameter parameter = new ReportParameter("MyParameter", values);</code></pre>



<a id="GrapeCity_ActiveReports_Viewer_Win_ReportParameter__ctor_" data-uid="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Win_ReportParameter__ctor_System_String_" data-uid="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.#ctor(System.String)">ReportParameter(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Viewer.Win.ReportParameter.html">ReportParameter</a> class without any values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ReportParameter(string name)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The name of the report parameter.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
