# EndSelectionsAsync Method

## Overloads

| [EndSelectionsAsync(Boolean)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.EndSelectionsAsync.htm#Qlik_Engine_IGenericObject_EndSelectionsAsync_System_Boolean_) |  | Ends the selection mode on a visualization. The selections are accepted or aborted when exiting the selection mode, depending on the `qAccept` parameter value. |
| --- | --- | --- |
| [EndSelectionsAsync(AsyncHandle, Boolean)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.EndSelectionsAsync.htm#Qlik_Engine_IGenericObject_EndSelectionsAsync_Qlik_Engine_AsyncHandle_System_Boolean_) |  | Ends the selection mode on a visualization. The selections are accepted or aborted when exiting the selection mode, depending on the `qAccept` parameter value. |

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

## EndSelectionsAsync(Boolean)

Ends the selection mode on a visualization. The selections are accepted or aborted when exiting the selection mode, depending on the `qAccept` parameter value.

### Declaration

```

          Task EndSelectionsAsync([QixName("qAccept")] bool accept)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Boolean | accept | Set this parameter to true to accept the selections before exiting the selection mode. |

### Returns

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

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

## EndSelectionsAsync(AsyncHandle, Boolean)

Ends the selection mode on a visualization. The selections are accepted or aborted when exiting the selection mode, depending on the `qAccept` parameter value.

### Declaration

```

          Task EndSelectionsAsync(AsyncHandle asyncHandle, [QixName("qAccept")] bool accept)
    
  
```

### 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.Boolean | accept | Set this parameter to true to accept the selections before exiting the selection mode. |

### Returns

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