# GetConnection Method

## Overloads

| [GetConnection(String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetConnection.htm#Qlik_Engine_IApp_GetConnection_System_String_) |  | Retrieves a connection and returns:<br><br>\* The creation time of the connection.<br><br>\* The identifier of the connection.<br><br>\* The type of the connection.<br><br>\* The name of the connection.<br><br>\* The connection string. |
| --- | --- | --- |

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

## GetConnection(String)

Retrieves a connection and returns:

* The creation time of the connection.
* The identifier of the connection.
* The type of the connection.
* The name of the connection.
* The connection string.

### Declaration

```

          Connection GetConnection([QixName("qConnectionId")] string connectionId)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | connectionId | Identifier of the connection. |

### Returns

| Type | Description |
| --- | --- |
| [Connection](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.htm) |  |