# GetContentAsync Method

## Overloads

| [GetContentAsync()](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IVariable.GetContentAsync.htm#Qlik_Engine_IVariable_GetContentAsync) |  | Returns the calculated value of a variable. |
| --- | --- | --- |
| [GetContentAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IVariable.GetContentAsync.htm#Qlik_Engine_IVariable_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/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IVariable.GetContentAsync.htm#Qlik_Engine_IVariable_GetContentAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) |  | Returns the calculated value of a variable. |

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

## GetContentAsync()

Returns the calculated value of a variable.

### Declaration

```

          [Obsolete("Use _GenericVariable::GetProperties_ method instead")]
Task<AlfaNumString> GetContentAsync()
    
  
```

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[AlfaNumString](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AlfaNumString.htm)&gt; |  |

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

## GetContentAsync(AsyncHandle)

Returns the calculated value of a variable.

### Declaration

```

          [Obsolete("Use _GenericVariable::GetProperties_ method instead")]
Task<AlfaNumString> GetContentAsync(AsyncHandle asyncHandle)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[AlfaNumString](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AlfaNumString.htm)&gt; |  |

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

## GetContentAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;)

Returns the calculated value of a variable.

### Declaration

```
[Obsolete("Use _GenericVariable::GetProperties_ method instead")]
Task<T> GetContentAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |