# CreateAppEx Method

## Overloads

| [CreateAppEx(String, String, String, String, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.CreateAppEx.htm#Qlik_Engine_Hub_CreateAppEx_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.CreateAppEx.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.CreateAppEx.htm)

## CreateAppEx(String, String, String, String, String)

Creates an app and opens an engine session.

### Declaration

```

          [QixName("CreateDocEx")]
public CreateAppExResult CreateAppEx([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 |
| --- | --- |
| [CreateAppExResult](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.CreateAppExResult.htm) |  |

### Implements

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

### Remarks

This operation is possible only in Qlik Sense Desktop.