# C1.Report.DataSource.EncloseParameterValues

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_DataSource_EncloseParameterValues_" data-uid="C1.Report.DataSource.EncloseParameterValues*">EncloseParameterValues Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_DataSource_EncloseParameterValues_" data-uid="C1.Report.DataSource.EncloseParameterValues*"></a>
<h4 id="C1_Report_DataSource_EncloseParameterValues" data-uid="C1.Report.DataSource.EncloseParameterValues">EncloseParameterValues</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether values of parameters in resulting SQL query
should be enclosed with delimiters, &quot;#&quot; for dates, &quot;'&quot; for strings, &quot;()&quot; for multivalue parameters.
If this parameter is false when all parameters in <a class="xref" href="C1.Report.DataSource.RecordSource.html#C1_Report_DataSource_RecordSource">RecordSource</a> already should be enclosed.
For example, EncloseParameterValues == true:
RecordSource = &quot;select * from customers where name = CustomerName&quot;;
actual SQL query will be:
select * from customers where name = 'Some customer'</p>
<p>EncloseParameterValues == false:
RecordSource = &quot;select * from customers where name = 'CustomerName'&quot;;
actual SQL query will be:
select * from customers where name = 'Some customer'</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Category(&quot;Data&quot;)]
[C1Description(&quot;DataSource.EncloseParameterValues&quot;, &quot;Indicates whether parameter values in SQL should be eclosed in appropriate quotes. Used only with Literal ParameterPassingMode.&quot;)]
public bool EncloseParameterValues { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Category(&quot;Data&quot;)&gt;
&lt;C1Description(&quot;DataSource.EncloseParameterValues&quot;, &quot;Indicates whether parameter values in SQL should be eclosed in appropriate quotes. Used only with Literal ParameterPassingMode.&quot;)&gt;
Public Property EncloseParameterValues As Boolean</code></pre>
</div>
<h5 id="C1_Report_DataSource_EncloseParameterValues_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Report.DataSource.ParameterPassingMode.html#C1_Report_DataSource_ParameterPassingMode">ParameterPassingMode</a></div>
</div>
</div>
