# ChangeSessionAppSpaceAsync Method

## Overloads

| [ChangeSessionAppSpaceAsync(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.ChangeSessionAppSpaceAsync.htm#Qlik_Engine_App_ChangeSessionAppSpaceAsync_System_String_) |  | Add a session app to a space. |
| --- | --- | --- |
| [ChangeSessionAppSpaceAsync(AsyncHandle, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.ChangeSessionAppSpaceAsync.htm#Qlik_Engine_App_ChangeSessionAppSpaceAsync_Qlik_Engine_AsyncHandle_System_String_) |  | Add a session app to a space. |
| [ChangeSessionAppSpaceAsync<T>(AsyncHandle, Func<Response, T>, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.ChangeSessionAppSpaceAsync.htm#Qlik_Engine_App_ChangeSessionAppSpaceAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_) |  | Add a session app to a space. |

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

## ChangeSessionAppSpaceAsync(String)

Add a session app to a space.

### Declaration

```

          public Task<bool> ChangeSessionAppSpaceAsync([QixName("qSpaceId")] string spaceId)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | spaceId | Identifier of the new space. |

### Returns

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

### Implements

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

### Remarks

Can be used by a privileged user when creating a session app to be consumed by other users. Only useful in environments where it is possible to reconnect to a session app, currently only in cloud deployments.

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

## ChangeSessionAppSpaceAsync(AsyncHandle, String)

Add a session app to a space.

### Declaration

```

          public Task<bool> ChangeSessionAppSpaceAsync(AsyncHandle asyncHandle, [QixName("qSpaceId")] string spaceId)
    
  
```

### 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 | spaceId | Identifier of the new space. |

### Returns

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

### Implements

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

### Remarks

Can be used by a privileged user when creating a session app to be consumed by other users. Only useful in environments where it is possible to reconnect to a session app, currently only in cloud deployments.

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

## ChangeSessionAppSpaceAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;, String)

Add a session app to a space.

### Declaration

```
public Task<T> ChangeSessionAppSpaceAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qSpaceId")] string spaceId)
```

### 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.String | spaceId | Identifier of the new space. |

### Returns

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

### Type Parameters

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

### Implements

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

### Remarks

Can be used by a privileged user when creating a session app to be consumed by other users. Only useful in environments where it is possible to reconnect to a session app, currently only in cloud deployments.