# C1.CalcEngine.IEngine.TryEvaluate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_CalcEngine_IEngine_TryEvaluate_" data-uid="C1.CalcEngine.IEngine.TryEvaluate*">TryEvaluate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_CalcEngine_IEngine_TryEvaluate_" data-uid="C1.CalcEngine.IEngine.TryEvaluate*"></a>
<h4 id="C1_CalcEngine_IEngine_TryEvaluate_System_Object__" data-uid="C1.CalcEngine.IEngine.TryEvaluate(System.Object@)">TryEvaluate(out object)</h4>
<div class="markdown level1 summary"><p>Gets a result of expression. A return value indicates whether the evaluate succeeded or failed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool TryEvaluate(out object result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function TryEvaluate(ByRef result As Object) As Boolean</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.object">object</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>true if expression was evaluated successfully; otherwise, false.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
