# CheckExpression Method

## Overloads

| [CheckExpression(String, IEnumerable<String>)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CheckExpression.htm#Qlik_Engine_IApp_CheckExpression_System_String_System_Collections_Generic_IEnumerable_System_String__) |  | 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;)

Checks if a given expression is valid.

### Declaration

```

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

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | expr | Expression to check. |
| System.Collections.Generic.IEnumerable&lt;System.String&gt; | labels | List of labels. |

### Returns

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

### Remarks

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