# GrapeCity.Enterprise.Data.Expressions.ConstantExpressionInfo.-ctor

## Content

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



<h1 id="GrapeCity_Enterprise_Data_Expressions_ConstantExpressionInfo__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.ConstantExpressionInfo.#ctor*">ConstantExpressionInfo Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Enterprise_Data_Expressions_ConstantExpressionInfo__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.ConstantExpressionInfo.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_ConstantExpressionInfo__ctor_System_String_System_Object_GrapeCity_Enterprise_Data_Expressions_ExpressionResultType_System_Boolean_" data-uid="GrapeCity.Enterprise.Data.Expressions.ConstantExpressionInfo.#ctor(System.String,System.Object,GrapeCity.Enterprise.Data.Expressions.ExpressionResultType,System.Boolean)">ConstantExpressionInfo(string, object, ExpressionResultType, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Enterprise.Data.Expressions.ConstantExpressionInfo.html">ConstantExpressionInfo</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ConstantExpressionInfo(string expression, object constantResult, ExpressionResultType resultType, bool isExpression)</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">expression</span></td>
      <td><p>A string containing the expression this object represents.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">constantResult</span></td>
      <td><p>The constant resulting value for this expression when <span class="xref">GrapeCity.Enterprise.Data.Expressions.ConstantExpressionInfo.GetConstantResult(System.String,GrapeCity.Enterprise.Data.Expressions.ExpressionResultType@)</span> is called. This may be the same as the expression (e.g. &quot;1&quot;==&quot;1&quot;) or not (&quot;hello world&quot;==hello world).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.ExpressionResultType.html">ExpressionResultType</a></td>
      <td><span class="parametername">resultType</span></td>
      <td><p>The data type of this expression's resulting value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isExpression</span></td>
      <td><p>True if this object represents an actual expression, or false if it represents a literal string, not to be interpreted as an expression (this value will be used as the value of <a class="xref" href="GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.IsExpression.html#GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_IsExpression">IsExpression</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
