# IsValidConnectionStringAsync Method

## Overloads

| [IsValidConnectionStringAsync(Connection)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.IsValidConnectionStringAsync.htm#Qlik_Engine_IHub_IsValidConnectionStringAsync_Qlik_Engine_Connection_) |  | Checks if a connection string is valid. |
| --- | --- | --- |
| [IsValidConnectionStringAsync(AsyncHandle, Connection)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.IsValidConnectionStringAsync.htm#Qlik_Engine_IHub_IsValidConnectionStringAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_Connection_) |  | Checks if a connection string is valid. |
| [IsValidConnectionStringAsync<T>(AsyncHandle, Func<Response, T>, Connection)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.IsValidConnectionStringAsync.htm#Qlik_Engine_IHub_IsValidConnectionStringAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__Qlik_Engine_Connection_) |  | Checks if a connection string is valid. |

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

## IsValidConnectionStringAsync(Connection)

Checks if a connection string is valid.

### Declaration

```

          Task<bool> IsValidConnectionStringAsync([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.Threading.Tasks.Task&lt;System.Boolean&gt; |  |

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

## IsValidConnectionStringAsync(AsyncHandle, Connection)

Checks if a connection string is valid.

### Declaration

```

          Task<bool> IsValidConnectionStringAsync(AsyncHandle asyncHandle, [QixName("qConnection")] Connection connection)
    
  
```

### 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 |
| [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.Threading.Tasks.Task&lt;System.Boolean&gt; |  |

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

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

Checks if a connection string is valid.

### Declaration

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

### 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 |
| [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.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

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