# AbortModalAsync Method

## Overloads

| [AbortModalAsync(Boolean)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.AbortModalAsync.htm#Qlik_Engine_App_AbortModalAsync_System_Boolean_) |  | Aborts any selection mode in an app. For more information about selection mode, see `BeginSelections method`. |
| --- | --- | --- |
| [AbortModalAsync(AsyncHandle, Boolean)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.AbortModalAsync.htm#Qlik_Engine_App_AbortModalAsync_Qlik_Engine_AsyncHandle_System_Boolean_) |  | Aborts any selection mode in an app. For more information about selection mode, see `BeginSelections method`. |

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

## AbortModalAsync(Boolean)

Aborts any selection mode in an app. For more information about selection mode, see `BeginSelections method`.

### Declaration

```

          public Task AbortModalAsync([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 |  |

### Implements

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

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

## AbortModalAsync(AsyncHandle, Boolean)

Aborts any selection mode in an app. For more information about selection mode, see `BeginSelections method`.

### Declaration

```

          public Task AbortModalAsync(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 |  |

### Implements

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