# CreateConnectionAsync Method

## Overloads

| [CreateConnectionAsync(Connection)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.CreateConnectionAsync.htm#Qlik_Engine_App_CreateConnectionAsync_Qlik_Engine_Connection_) |  | Creates a connection.<br><br>A connection indicates from which data source the data should be taken. |
| --- | --- | --- |
| [CreateConnectionAsync(AsyncHandle, Connection)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.CreateConnectionAsync.htm#Qlik_Engine_App_CreateConnectionAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_Connection_) |  | Creates a connection.<br><br>A connection indicates from which data source the data should be taken. |
| [CreateConnectionAsync<T>(AsyncHandle, Func<Response, T>, Connection)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.CreateConnectionAsync.htm#Qlik_Engine_App_CreateConnectionAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__Qlik_Engine_Connection_) |  | Creates a connection.<br><br>A connection indicates from which data source the data should be taken. |

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

## CreateConnectionAsync(Connection)

Creates a connection.

A connection indicates from which data source the data should be taken.

### Declaration

```

          public Task<string> CreateConnectionAsync([QixName("qConnection")] Connection connection)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [Connection](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.htm) | connection | Information about the connection. |

### Returns

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

### Implements

[IApp.CreateConnectionAsync(Connection)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CreateConnectionAsync.htm#Qlik_Engine_IApp_CreateConnectionAsync_Qlik_Engine_Connection_)

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

## CreateConnectionAsync(AsyncHandle, Connection)

Creates a connection.

A connection indicates from which data source the data should be taken.

### Declaration

```

          public Task<string> CreateConnectionAsync(AsyncHandle asyncHandle, [QixName("qConnection")] Connection connection)
    
  
```

### Parameters

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

### Returns

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

### Implements

[IApp.CreateConnectionAsync(AsyncHandle, Connection)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CreateConnectionAsync.htm#Qlik_Engine_IApp_CreateConnectionAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_Connection_)

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

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

Creates a connection.

A connection indicates from which data source the data should be taken.

### Declaration

```
public Task<T> CreateConnectionAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qConnection")] Connection connection)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2025/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/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |
| [Connection](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.htm) | connection | Information about the connection. |

### Returns

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

### Type Parameters

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

### Implements

[IApp.CreateConnectionAsync<T>(AsyncHandle, Func<Response, T>, Connection)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.CreateConnectionAsync.htm#Qlik_Engine_IApp_CreateConnectionAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__Qlik_Engine_Connection_)