# CreateConnection Method

## Overloads

| [CreateConnection(Connection)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.CreateConnection.htm#Qlik_Engine_App_CreateConnection_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.CreateConnection.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.CreateConnection.htm)

## CreateConnection(Connection)

Creates a connection.

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

### Declaration

```

          public string CreateConnection([QixName("qConnection")] Connection connection)
    
  
```

### Parameters

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

### Returns

| Type | Description |
| --- | --- |
| System.String |  |

### Implements

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