# GetDatabasesAsync Method

## Overloads

| [GetDatabasesAsync(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.GetDatabasesAsync.htm#Qlik_Engine_App_GetDatabasesAsync_System_String_) |  | Lists the databases inside a ODBC, OLEDB or CUSTOM data source. |
| --- | --- | --- |
| [GetDatabasesAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.GetDatabasesAsync.htm#Qlik_Engine_App_GetDatabasesAsync_Qlik_Engine_AsyncHandle_System_String_) |  | Lists the databases inside a ODBC, OLEDB or CUSTOM data source. |
| [GetDatabasesAsync<T>(AsyncHandle, Func<Response, T>, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.GetDatabasesAsync.htm#Qlik_Engine_App_GetDatabasesAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_) |  | Lists the databases inside a ODBC, OLEDB or CUSTOM data source. |

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

## GetDatabasesAsync(String)

Lists the databases inside a ODBC, OLEDB or CUSTOM data source.

### Declaration

```

          public Task<IEnumerable<Database>> GetDatabasesAsync([QixName("qConnectionId")] string connectionId)
    
  
```

### Parameters

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

### Returns

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

### Implements

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

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

## GetDatabasesAsync(AsyncHandle, String)

Lists the databases inside a ODBC, OLEDB or CUSTOM data source.

### Declaration

```

          public Task<IEnumerable<Database>> GetDatabasesAsync(AsyncHandle asyncHandle, [QixName("qConnectionId")] string connectionId)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.String | connectionId | Identifier of the connection. |

### Returns

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

### Implements

[IApp.GetDatabasesAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetDatabasesAsync.htm#Qlik_Engine_IApp_GetDatabasesAsync_Qlik_Engine_AsyncHandle_System_String_)

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

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

Lists the databases inside a ODBC, OLEDB or CUSTOM data source.

### Declaration

```
public Task<T> GetDatabasesAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qConnectionId")] string connectionId)
```

### Parameters

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

### Returns

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

### Type Parameters

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

### Implements

[IApp.GetDatabasesAsync<T>(AsyncHandle, Func<Response, T>, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetDatabasesAsync.htm#Qlik_Engine_IApp_GetDatabasesAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_)