# CancelReloadAsync Method

## Overloads

| [CancelReloadAsync(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.CancelReloadAsync.htm#Qlik_Engine_Hub_CancelReloadAsync_System_String_) |  | Cancels an ongoing reload. The reload of the app is stopped. The indexation can be canceled and `true` is still the return value of the reload task. |
| --- | --- | --- |
| [CancelReloadAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.CancelReloadAsync.htm#Qlik_Engine_Hub_CancelReloadAsync_Qlik_Engine_AsyncHandle_System_String_) |  | Cancels an ongoing reload. The reload of the app is stopped. The indexation can be canceled and `true` is still the return value of the reload task. |

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

## CancelReloadAsync(String)

Cancels an ongoing reload. The reload of the app is stopped. The indexation can be canceled and `true` is still the return value of the reload task.

### Declaration

```

          public Task CancelReloadAsync([QixName("qReason")] string reason = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | reason | Reason for why the reload was cancelled. This will be echoed back to the user in the script log. |

### Returns

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

### Implements

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

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

## CancelReloadAsync(AsyncHandle, String)

Cancels an ongoing reload. The reload of the app is stopped. The indexation can be canceled and `true` is still the return value of the reload task.

### Declaration

```

          public Task CancelReloadAsync(AsyncHandle asyncHandle, [QixName("qReason")] string reason = null)
    
  
```

### 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 | reason | Reason for why the reload was cancelled. This will be echoed back to the user in the script log. |

### Returns

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

### Implements

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