# SelectAssociationsAsync Method

## Overloads

| [SelectAssociationsAsync(SearchCombinationOptions, IEnumerable<String>, Int32, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.SelectAssociationsAsync.htm#Qlik_Engine_IApp_SelectAssociationsAsync_Qlik_Engine_SearchCombinationOptions_System_Collections_Generic_IEnumerable_System_String__System_Int32_System_Boolean_) |  | Selects all search hits for a specified group.<br><br>The results depend on the search context.<br><br><br>`SearchCombinationOptions`. |
| --- | --- | --- |
| [SelectAssociationsAsync(AsyncHandle, SearchCombinationOptions, IEnumerable<String>, Int32, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.SelectAssociationsAsync.htm#Qlik_Engine_IApp_SelectAssociationsAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_SearchCombinationOptions_System_Collections_Generic_IEnumerable_System_String__System_Int32_System_Boolean_) |  | Selects all search hits for a specified group.<br><br>The results depend on the search context.<br><br><br>`SearchCombinationOptions`. |

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

## SelectAssociationsAsync(SearchCombinationOptions, IEnumerable&lt;String&gt;, Int32, Boolean)

Selects all search hits for a specified group.

The results depend on the search context.

`SearchCombinationOptions`.

### Declaration

```

          Task SelectAssociationsAsync([QixName("qOptions")] SearchCombinationOptions options, [QixName("qTerms")] IEnumerable<string> terms, [QixName("qMatchIx")] int matchIx, [QixName("qSoftLock")] bool softLock = false)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [SearchCombinationOptions](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SearchCombinationOptions.htm) | options | Information about the search fields and the search context. |
| System.Collections.Generic.IEnumerable&lt;System.String&gt; | terms | List of terms to search for. |
| System.Int32 | matchIx | Index (value of `qId` ) of the search result to select. |
| System.Boolean | softLock | This parameter is deprecated and should not be set. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

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

## SelectAssociationsAsync(AsyncHandle, SearchCombinationOptions, IEnumerable&lt;String&gt;, Int32, Boolean)

Selects all search hits for a specified group.

The results depend on the search context.

`SearchCombinationOptions`.

### Declaration

```

          Task SelectAssociationsAsync(AsyncHandle asyncHandle, [QixName("qOptions")] SearchCombinationOptions options, [QixName("qTerms")] IEnumerable<string> terms, [QixName("qMatchIx")] int matchIx, [QixName("qSoftLock")] bool softLock = false)
    
  
```

### 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 |
| [SearchCombinationOptions](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.SearchCombinationOptions.htm) | options | Information about the search fields and the search context. |
| System.Collections.Generic.IEnumerable&lt;System.String&gt; | terms | List of terms to search for. |
| System.Int32 | matchIx | Index (value of `qId` ) of the search result to select. |
| System.Boolean | softLock | This parameter is deprecated and should not be set. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |