# Variable Class

Namespace: [Qlik.Engine](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.htm)  
Assembly: Qlik.Engine.dll

This class describes all the methods that apply at variable level.

The `handle` member in the JSON request for all methods listed in this section is the handle of the variable.

## Inheritance

* System.Object
  * [QixClassBase](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.QixClassBase.htm)
    * Variable

## Syntax

```
public class Variable : QixClassBase, IVariable, IQixClassBase, IDisposable, IChangeNotifier
```

## Constructors

| Name | Description |
| --- | --- |
| [Variable(Int32)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.-ctor.htm#Qlik_Engine_Variable__ctor_System_Int32_) |  |

## Methods

| Name | Description |
| --- | --- |
| [ForceContent(String, Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.ForceContent.htm#Qlik_Engine_Variable_ForceContent_System_String_System_Double_) | Sets the value of a dual variable overriding any input constraints. |
| [ForceContentAsync(AsyncHandle, String, Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.ForceContentAsync.htm#Qlik_Engine_Variable_ForceContentAsync_Qlik_Engine_AsyncHandle_System_String_System_Double_) | Sets the value of a dual variable overriding any input constraints. |
| [ForceContentAsync(String, Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.ForceContentAsync.htm#Qlik_Engine_Variable_ForceContentAsync_System_String_System_Double_) | Sets the value of a dual variable overriding any input constraints. |
| [GetContent()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetContent.htm#Qlik_Engine_Variable_GetContent) | Returns the calculated value of a variable. |
| [GetContentAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetContentAsync.htm#Qlik_Engine_Variable_GetContentAsync) | Returns the calculated value of a variable. |
| [GetContentAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetContentAsync.htm#Qlik_Engine_Variable_GetContentAsync_Qlik_Engine_AsyncHandle_) | Returns the calculated value of a variable. |
| [GetContentAsync<T>(AsyncHandle, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetContentAsync.htm#Qlik_Engine_Variable_GetContentAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) | Returns the calculated value of a variable. |
| [GetNxProperties()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetNxProperties.htm#Qlik_Engine_Variable_GetNxProperties) | Gets the properties of a variable. |
| [GetNxPropertiesAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetNxPropertiesAsync.htm#Qlik_Engine_Variable_GetNxPropertiesAsync) | Gets the properties of a variable. |
| [GetNxPropertiesAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetNxPropertiesAsync.htm#Qlik_Engine_Variable_GetNxPropertiesAsync_Qlik_Engine_AsyncHandle_) | Gets the properties of a variable. |
| [GetNxPropertiesAsync<T>(AsyncHandle, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetNxPropertiesAsync.htm#Qlik_Engine_Variable_GetNxPropertiesAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) | Gets the properties of a variable. |
| [GetRawContent()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetRawContent.htm#Qlik_Engine_Variable_GetRawContent) | Returns the raw value of a variable. |
| [GetRawContentAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetRawContentAsync.htm#Qlik_Engine_Variable_GetRawContentAsync) | Returns the raw value of a variable. |
| [GetRawContentAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetRawContentAsync.htm#Qlik_Engine_Variable_GetRawContentAsync_Qlik_Engine_AsyncHandle_) | Returns the raw value of a variable. |
| [GetRawContentAsync<T>(AsyncHandle, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.GetRawContentAsync.htm#Qlik_Engine_Variable_GetRawContentAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) | Returns the raw value of a variable. |
| [OnGetContentAsync(Response)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.OnGetContentAsync.htm#Qlik_Engine_Variable_OnGetContentAsync_Qlik_Engine_Communication_IO_Response_) |  |
| [OnGetNxPropertiesAsync(Response)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.OnGetNxPropertiesAsync.htm#Qlik_Engine_Variable_OnGetNxPropertiesAsync_Qlik_Engine_Communication_IO_Response_) |  |
| [OnGetRawContentAsync(Response)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.OnGetRawContentAsync.htm#Qlik_Engine_Variable_OnGetRawContentAsync_Qlik_Engine_Communication_IO_Response_) |  |
| [OnSetContentAsync(Response)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.OnSetContentAsync.htm#Qlik_Engine_Variable_OnSetContentAsync_Qlik_Engine_Communication_IO_Response_) |  |
| [SetContent(String, Boolean)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.SetContent.htm#Qlik_Engine_Variable_SetContent_System_String_System_Boolean_) | Sets a value to a variable. |
| [SetContentAsync(AsyncHandle, String, Boolean)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.SetContentAsync.htm#Qlik_Engine_Variable_SetContentAsync_Qlik_Engine_AsyncHandle_System_String_System_Boolean_) | Sets a value to a variable. |
| [SetContentAsync(String, Boolean)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.SetContentAsync.htm#Qlik_Engine_Variable_SetContentAsync_System_String_System_Boolean_) | Sets a value to a variable. |
| [SetContentAsync<T>(AsyncHandle, Func<Response, T>, String, Boolean)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.SetContentAsync.htm#Qlik_Engine_Variable_SetContentAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_System_Boolean_) | Sets a value to a variable. |
| [SetNxProperties(NxVariableProperties)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.SetNxProperties.htm#Qlik_Engine_Variable_SetNxProperties_Qlik_Engine_NxVariableProperties_) | Sets some properties to a variable. |
| [SetNxPropertiesAsync(AsyncHandle, NxVariableProperties)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.SetNxPropertiesAsync.htm#Qlik_Engine_Variable_SetNxPropertiesAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_NxVariableProperties_) | Sets some properties to a variable. |
| [SetNxPropertiesAsync(NxVariableProperties)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Variable.SetNxPropertiesAsync.htm#Qlik_Engine_Variable_SetNxPropertiesAsync_Qlik_Engine_NxVariableProperties_) | Sets some properties to a variable. |