# ApplyGroupStatesAsync Method

## Overloads

| [ApplyGroupStatesAsync(IEnumerable<GroupState>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.ApplyGroupStatesAsync.htm#Qlik_Engine_App_ApplyGroupStatesAsync_System_Collections_Generic_IEnumerable_Qlik_Engine_GroupState__) |  |  |
| --- | --- | --- |
| [ApplyGroupStatesAsync(AsyncHandle, IEnumerable<GroupState>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.ApplyGroupStatesAsync.htm#Qlik_Engine_App_ApplyGroupStatesAsync_Qlik_Engine_AsyncHandle_System_Collections_Generic_IEnumerable_Qlik_Engine_GroupState__) |  |  |
| [ApplyGroupStatesAsync<T>(AsyncHandle, Func<Response, T>, IEnumerable<GroupState>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.ApplyGroupStatesAsync.htm#Qlik_Engine_App_ApplyGroupStatesAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_Collections_Generic_IEnumerable_Qlik_Engine_GroupState__) |  |  |

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

## ApplyGroupStatesAsync(IEnumerable&lt;GroupState&gt;)

### Declaration

```

          public Task<ApplyGroupStatesResult> ApplyGroupStatesAsync([QixName("qGroupStates")] IEnumerable<GroupState> groupStates)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Collections.Generic.IEnumerable&lt;[GroupState](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GroupState.htm)&gt; | groupStates |  |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[ApplyGroupStatesResult](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ApplyGroupStatesResult.htm)&gt; |  |

### Implements

[IApp.ApplyGroupStatesAsync(IEnumerable<GroupState>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ApplyGroupStatesAsync.htm#Qlik_Engine_IApp_ApplyGroupStatesAsync_System_Collections_Generic_IEnumerable_Qlik_Engine_GroupState__)

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

## ApplyGroupStatesAsync(AsyncHandle, IEnumerable&lt;GroupState&gt;)

### Declaration

```

          public Task<ApplyGroupStatesResult> ApplyGroupStatesAsync(AsyncHandle asyncHandle, [QixName("qGroupStates")] IEnumerable<GroupState> groupStates)
    
  
```

### 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.Collections.Generic.IEnumerable&lt;[GroupState](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GroupState.htm)&gt; | groupStates |  |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[ApplyGroupStatesResult](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ApplyGroupStatesResult.htm)&gt; |  |

### Implements

[IApp.ApplyGroupStatesAsync(AsyncHandle, IEnumerable<GroupState>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ApplyGroupStatesAsync.htm#Qlik_Engine_IApp_ApplyGroupStatesAsync_Qlik_Engine_AsyncHandle_System_Collections_Generic_IEnumerable_Qlik_Engine_GroupState__)

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

## ApplyGroupStatesAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;, IEnumerable&lt;GroupState&gt;)

### Declaration

```
public Task<T> ApplyGroupStatesAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qGroupStates")] IEnumerable<GroupState> groupStates)
```

### 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.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |
| System.Collections.Generic.IEnumerable&lt;[GroupState](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GroupState.htm)&gt; | groupStates |  |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |

### Implements

[IApp.ApplyGroupStatesAsync<T>(AsyncHandle, Func<Response, T>, IEnumerable<GroupState>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ApplyGroupStatesAsync.htm#Qlik_Engine_IApp_ApplyGroupStatesAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_Collections_Generic_IEnumerable_Qlik_Engine_GroupState__)