# IGenericVariable Interface

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 generic variable level.

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

## Syntax

```
public interface IGenericVariable : IPropertyContainer, IQixClassBase, IDisposable, IChangeNotifier
```

## Properties

| Name | Description |
| --- | --- |
| [Layout](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.Layout.htm#Qlik_Engine_IGenericVariable_Layout) |  |
| [Properties](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.Properties.htm#Qlik_Engine_IGenericVariable_Properties) |  |

## Methods

| Name | Description |
| --- | --- |
| [ApplyPatches(IEnumerable<NxPatch>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.ApplyPatches.htm#Qlik_Engine_IGenericVariable_ApplyPatches_System_Collections_Generic_IEnumerable_Qlik_Engine_NxPatch__) | Applies a patch to the properties of a variable. Allows an update to some of the properties. It should not be possible to patch "/qInfo/qId",<br><br>and it will be forbidden in the near future. |
| [ApplyPatchesAsync(AsyncHandle, IEnumerable<NxPatch>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.ApplyPatchesAsync.htm#Qlik_Engine_IGenericVariable_ApplyPatchesAsync_Qlik_Engine_AsyncHandle_System_Collections_Generic_IEnumerable_Qlik_Engine_NxPatch__) | Applies a patch to the properties of a variable. Allows an update to some of the properties. It should not be possible to patch "/qInfo/qId",<br><br>and it will be forbidden in the near future. |
| [ApplyPatchesAsync(IEnumerable<NxPatch>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.ApplyPatchesAsync.htm#Qlik_Engine_IGenericVariable_ApplyPatchesAsync_System_Collections_Generic_IEnumerable_Qlik_Engine_NxPatch__) | Applies a patch to the properties of a variable. Allows an update to some of the properties. It should not be possible to patch "/qInfo/qId",<br><br>and it will be forbidden in the near future. |
| [GetInfo()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetInfo.htm#Qlik_Engine_IGenericVariable_GetInfo) | Returns the type and identifier of the object. |
| [GetInfoAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetInfoAsync.htm#Qlik_Engine_IGenericVariable_GetInfoAsync) | Returns the type and identifier of the object. |
| [GetInfoAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetInfoAsync.htm#Qlik_Engine_IGenericVariable_GetInfoAsync_Qlik_Engine_AsyncHandle_) | Returns the type and identifier of the object. |
| [GetInfoAsync<T>(AsyncHandle, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetInfoAsync.htm#Qlik_Engine_IGenericVariable_GetInfoAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) | Returns the type and identifier of the object. |
| [GetLayout()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetLayout.htm#Qlik_Engine_IGenericVariable_GetLayout) | Evaluates an object and displays its properties including the dynamic properties.<br><br>If the member `delta` is set to true in the request object, only the delta is evaluated. |
| [GetLayoutAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetLayoutAsync.htm#Qlik_Engine_IGenericVariable_GetLayoutAsync) | Evaluates an object and displays its properties including the dynamic properties.<br><br>If the member `delta` is set to true in the request object, only the delta is evaluated. |
| [GetLayoutAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetLayoutAsync.htm#Qlik_Engine_IGenericVariable_GetLayoutAsync_Qlik_Engine_AsyncHandle_) | Evaluates an object and displays its properties including the dynamic properties.<br><br>If the member `delta` is set to true in the request object, only the delta is evaluated. |
| [GetProperties()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetProperties.htm#Qlik_Engine_IGenericVariable_GetProperties) | Shows the properties of an object.<br><br>The following is always returned in the output: |
| [GetPropertiesAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetPropertiesAsync.htm#Qlik_Engine_IGenericVariable_GetPropertiesAsync) | Shows the properties of an object.<br><br>The following is always returned in the output: |
| [GetPropertiesAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetPropertiesAsync.htm#Qlik_Engine_IGenericVariable_GetPropertiesAsync_Qlik_Engine_AsyncHandle_) | Shows the properties of an object.<br><br>The following is always returned in the output: |
| [GetRawContent()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetRawContent.htm#Qlik_Engine_IGenericVariable_GetRawContent) | Returns the raw value of a variable. |
| [GetRawContentAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetRawContentAsync.htm#Qlik_Engine_IGenericVariable_GetRawContentAsync) | Returns the raw value of a variable. |
| [GetRawContentAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.GetRawContentAsync.htm#Qlik_Engine_IGenericVariable_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.IGenericVariable.GetRawContentAsync.htm#Qlik_Engine_IGenericVariable_GetRawContentAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) | Returns the raw value of a variable. |
| [SetDualValue(String, Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetDualValue.htm#Qlik_Engine_IGenericVariable_SetDualValue_System_String_System_Double_) | Sets the value of a dual variable. |
| [SetDualValueAsync(AsyncHandle, String, Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetDualValueAsync.htm#Qlik_Engine_IGenericVariable_SetDualValueAsync_Qlik_Engine_AsyncHandle_System_String_System_Double_) | Sets the value of a dual variable. |
| [SetDualValueAsync(String, Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetDualValueAsync.htm#Qlik_Engine_IGenericVariable_SetDualValueAsync_System_String_System_Double_) | Sets the value of a dual variable. |
| [SetNumValue(Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetNumValue.htm#Qlik_Engine_IGenericVariable_SetNumValue_System_Double_) | Sets a numerical value to a variable. |
| [SetNumValueAsync(AsyncHandle, Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetNumValueAsync.htm#Qlik_Engine_IGenericVariable_SetNumValueAsync_Qlik_Engine_AsyncHandle_System_Double_) | Sets a numerical value to a variable. |
| [SetNumValueAsync(Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetNumValueAsync.htm#Qlik_Engine_IGenericVariable_SetNumValueAsync_System_Double_) | Sets a numerical value to a variable. |
| [SetProperties(GenericVariableProperties)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetProperties.htm#Qlik_Engine_IGenericVariable_SetProperties_Qlik_Engine_GenericVariableProperties_) | Sets some properties for a variable. |
| [SetPropertiesAsync(AsyncHandle, GenericVariableProperties)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetPropertiesAsync.htm#Qlik_Engine_IGenericVariable_SetPropertiesAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_GenericVariableProperties_) | Sets some properties for a variable. |
| [SetPropertiesAsync(GenericVariableProperties)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetPropertiesAsync.htm#Qlik_Engine_IGenericVariable_SetPropertiesAsync_Qlik_Engine_GenericVariableProperties_) | Sets some properties for a variable. |
| [SetStringValue(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetStringValue.htm#Qlik_Engine_IGenericVariable_SetStringValue_System_String_) | Sets a string value to a variable. |
| [SetStringValueAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetStringValueAsync.htm#Qlik_Engine_IGenericVariable_SetStringValueAsync_Qlik_Engine_AsyncHandle_System_String_) | Sets a string value to a variable. |
| [SetStringValueAsync(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericVariable.SetStringValueAsync.htm#Qlik_Engine_IGenericVariable_SetStringValueAsync_System_String_) | Sets a string value to a variable. |