# LockAllAsync Method

## Overloads

| [LockAllAsync(String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.LockAllAsync.htm#Qlik_Engine_App_LockAllAsync_System_String_) |  | Locks all selections in fields for current state. |
| --- | --- | --- |
| [LockAllAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.LockAllAsync.htm#Qlik_Engine_App_LockAllAsync_Qlik_Engine_AsyncHandle_System_String_) |  | Locks all selections in fields for current state. |

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

## LockAllAsync(String)

Locks all selections in fields for current state.

### Declaration

```

          public Task LockAllAsync([QixName("qStateName")] string stateName = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | stateName | Alternate state name. When set, applies to alternate state instead of current. |

### Returns

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

### Implements

[IApp.LockAllAsync(String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.LockAllAsync.htm#Qlik_Engine_IApp_LockAllAsync_System_String_)

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

## LockAllAsync(AsyncHandle, String)

Locks all selections in fields for current state.

### Declaration

```

          public Task LockAllAsync(AsyncHandle asyncHandle, [QixName("qStateName")] string stateName = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.String | stateName | Alternate state name. When set, applies to alternate state instead of current. |

### Returns

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

### Implements

[IApp.LockAllAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.LockAllAsync.htm#Qlik_Engine_IApp_LockAllAsync_Qlik_Engine_AsyncHandle_System_String_)