# CreateAppExAsync Method

## Overloads

| [CreateAppExAsync(String, String, String, String, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.CreateAppExAsync.htm#Qlik_Engine_Hub_CreateAppExAsync_System_String_System_String_System_String_System_String_System_String_) |  | Creates an app and opens an engine session. |
| --- | --- | --- |
| [CreateAppExAsync(AsyncHandle, String, String, String, String, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.CreateAppExAsync.htm#Qlik_Engine_Hub_CreateAppExAsync_Qlik_Engine_AsyncHandle_System_String_System_String_System_String_System_String_System_String_) |  | Creates an app and opens an engine session. |
| [CreateAppExAsync<T>(AsyncHandle, Func<Response, T>, String, String, String, String, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.CreateAppExAsync.htm#Qlik_Engine_Hub_CreateAppExAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_System_String_System_String_System_String_System_String_) |  | Creates an app and opens an engine session. |

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

## CreateAppExAsync(String, String, String, String, String)

Creates an app and opens an engine session.

### Declaration

```

          [QixName("CreateDocEx")]
public Task<CreateAppExResult> CreateAppExAsync([QixName("qDocName")] string docName, [QixName("qUserName")] string userName = null, [QixName("qPassword")] string password = null, [QixName("qSerial")] string serial = null, [QixName("qLocalizedScriptMainSection")] string localizedScriptMainSection = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | docName | Name of the app. |
| System.String | userName | Name of the user. |
| System.String | password | Password of the user. |
| System.String | serial | Current Qlik Sense serial number. |
| System.String | localizedScriptMainSection | Name of the first section in the script editor.<br>The default value is `Main`. |

### Returns

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

### Implements

[IHub.CreateAppExAsync(String, String, String, String, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.CreateAppExAsync.htm#Qlik_Engine_IHub_CreateAppExAsync_System_String_System_String_System_String_System_String_System_String_)

### Remarks

This operation is possible only in Qlik Sense Desktop.

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

## CreateAppExAsync(AsyncHandle, String, String, String, String, String)

Creates an app and opens an engine session.

### Declaration

```

          [QixName("CreateDocEx")]
public Task<CreateAppExResult> CreateAppExAsync(AsyncHandle asyncHandle, [QixName("qDocName")] string docName, [QixName("qUserName")] string userName = null, [QixName("qPassword")] string password = null, [QixName("qSerial")] string serial = null, [QixName("qLocalizedScriptMainSection")] string localizedScriptMainSection = 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 | docName | Name of the app. |
| System.String | userName | Name of the user. |
| System.String | password | Password of the user. |
| System.String | serial | Current Qlik Sense serial number. |
| System.String | localizedScriptMainSection | Name of the first section in the script editor.<br>The default value is `Main`. |

### Returns

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

### Implements

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

### Remarks

This operation is possible only in Qlik Sense Desktop.

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

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

Creates an app and opens an engine session.

### Declaration

```
[QixName("CreateDocEx")]
public Task<T> CreateAppExAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qDocName")] string docName, [QixName("qUserName")] string userName = null, [QixName("qPassword")] string password = null, [QixName("qSerial")] string serial = null, [QixName("qLocalizedScriptMainSection")] string localizedScriptMainSection = 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.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |
| System.String | docName | Name of the app. |
| System.String | userName | Name of the user. |
| System.String | password | Password of the user. |
| System.String | serial | Current Qlik Sense serial number. |
| System.String | localizedScriptMainSection | Name of the first section in the script editor.<br>The default value is `Main`. |

### Returns

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

### Type Parameters

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

### Implements

[IHub.CreateAppExAsync<T>(AsyncHandle, Func<Response, T>, String, String, String, String, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.CreateAppExAsync.htm#Qlik_Engine_IHub_CreateAppExAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_System_String_System_String_System_String_System_String_)

### Remarks

This operation is possible only in Qlik Sense Desktop.