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

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

## Inheritance

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

        [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.htm)
        #### Derived Classes
        * [Variable](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.Variable.htm)

## Syntax

```
public class GenericVariable : PropertyContainer, ITransient, IGenericVariable, IPropertyContainer, IQixClassBase, IDisposable, IChangeNotifier
```

## Constructors

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

## Properties

| Name | Description |
| --- | --- |
| [IsTransient](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.IsTransient.htm#Qlik_Engine_GenericVariable_IsTransient) | Indicates whether or not this object is a session variable. |
| [Layout](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.Layout.htm#Qlik_Engine_GenericVariable_Layout) |  |
| [Properties](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.Properties.htm#Qlik_Engine_GenericVariable_Properties) |  |

## Methods

| Name | Description |
| --- | --- |
| [ApplyPatches(IEnumerable<NxPatch>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.ApplyPatches.htm#Qlik_Engine_GenericVariable_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.GenericVariable.ApplyPatchesAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.ApplyPatchesAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetInfo.htm#Qlik_Engine_GenericVariable_GetInfo) | Returns the type and identifier of the object. |
| [GetInfoAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.GetInfoAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetInfoAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetInfoAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetLayout.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetLayoutAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetLayoutAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetProperties.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetPropertiesAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetPropertiesAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetRawContent.htm#Qlik_Engine_GenericVariable_GetRawContent) | Returns the raw value of a variable. |
| [GetRawContentAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.GetRawContentAsync.htm#Qlik_Engine_GenericVariable_GetRawContentAsync) | Returns the raw value of a variable. |
| [GetRawContentAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.GetRawContentAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.GetRawContentAsync.htm#Qlik_Engine_GenericVariable_GetRawContentAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) | Returns the raw value of a variable. |
| [MarkAsTransient()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.MarkAsTransient.htm#Qlik_Engine_GenericVariable_MarkAsTransient) | Mark object as being a session variable and ensure that it is correctly destroyed when the .NET object is disposed. |
| [OnGetInfoAsync(Response)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.OnGetInfoAsync.htm#Qlik_Engine_GenericVariable_OnGetInfoAsync_Qlik_Engine_Communication_IO_Response_) |  |
| [OnGetLayoutAsync(Response)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.OnGetLayoutAsync.htm#Qlik_Engine_GenericVariable_OnGetLayoutAsync_Qlik_Engine_Communication_IO_Response_) |  |
| [OnGetPropertiesAsync(Response)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.OnGetPropertiesAsync.htm#Qlik_Engine_GenericVariable_OnGetPropertiesAsync_Qlik_Engine_Communication_IO_Response_) |  |
| [OnGetRawContentAsync(Response)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.OnGetRawContentAsync.htm#Qlik_Engine_GenericVariable_OnGetRawContentAsync_Qlik_Engine_Communication_IO_Response_) |  |
| [SetDualValue(String, Double)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericVariable.SetDualValue.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetDualValueAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetDualValueAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetNumValue.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetNumValueAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetNumValueAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetProperties.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetPropertiesAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetPropertiesAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetStringValue.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetStringValueAsync.htm#Qlik_Engine_GenericVariable_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.GenericVariable.SetStringValueAsync.htm#Qlik_Engine_GenericVariable_SetStringValueAsync_System_String_) | Sets a string value to a variable. |