# LockAll Method

## Overloads

| [LockAll(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.LockAll.htm#Qlik_Engine_IApp_LockAll_System_String_) |  | Locks all selections in fields for current state. |
| --- | --- | --- |

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

## LockAll(String)

Locks all selections in fields for current state.

### Declaration

```

          void LockAll([QixName("qStateName")] string stateName = null)
    
  
```

### Parameters

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