# CheckExpression Method

## Overloads

| [CheckExpression(String, IEnumerable<String>, Boolean)](https://help.qlik.com/en-US/sense-developer/November2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CheckExpression.htm#Qlik_Engine_IApp_CheckExpression_System_String_System_Collections_Generic_IEnumerable_System_String__System_Boolean_) |  | Checks if a given expression is valid. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CheckExpression.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CheckExpression.htm)

## CheckExpression(String, IEnumerable&lt;String&gt;, Boolean)

Checks if a given expression is valid.

### Declaration

```

          CheckExpressionResult CheckExpression([QixName("qExpr")] string expr, [QixName("qLabels")] IEnumerable<string> labels = null, [QixName("qStrictFieldValidation")] bool strictFieldValidation = false)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | expr | Expression to check. |
| System.Collections.Generic.IEnumerable&lt;System.String&gt; | labels | List of labels. |
| System.Boolean | strictFieldValidation | If true, enforces strict validation of field references. |

### Returns

| Type | Description |
| --- | --- |
| [CheckExpressionResult](https://help.qlik.com/en-US/sense-developer/November2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.CheckExpressionResult.htm) |  |

### Remarks

The expression is correct if the parameters `qErrorMsg` , `qBadFieldNames` and `qDangerousFieldNames` are empty.