# Connection Class

Namespace: [Qlik.Engine](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.htm)  
Assembly: Qlik.Engine.dll

## Inheritance

* System.Object
  * Connection

## Syntax

```
[ValueClass]
public class Connection : IConnection
```

## Constructors

| Name | Description |
| --- | --- |
| [Connection()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.-ctor.htm#Qlik_Engine_Connection__ctor) |  |

## Properties

| Name | Description |
| --- | --- |
| [ConnectionString](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.ConnectionString.htm#Qlik_Engine_Connection_ConnectionString) | One of:<br><br>\* ODBC CONNECT TO [&lt;provider name&gt;]<br><br>\* OLEDB CONNECT TO [&lt;provider name&gt;]<br><br>\* CUSTOM CONNECT TO [&lt;provider name&gt;]<br><br>\* "&lt;local absolute or relative path, UNC path&gt;"<br><br>\* "&lt;URL&gt;"<br><br>Connection string.<br><br>This parameter is mandatory and must be set when creating or modifying a connection.<br><br>JSON property name: qConnectionString |
| [Id](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.Id.htm#Qlik_Engine_Connection_Id) | Identifier of the connection.<br><br>Is generated by the engine and is unique.<br><br>JSON property name: qId |
| [LogOn](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.LogOn.htm#Qlik_Engine_Connection_LogOn) | Select which user credentials to use to connect to the source.<br><br>\* LOG\_ON\_SERVICE\_USER: Disables<br><br>\* LOG\_ON\_CURRENT\_USER: Enables<br><br>JSON property name: qLogOn |
| [Meta](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.Meta.htm#Qlik_Engine_Connection_Meta) | Information about the connection.<br><br>JSON property name: qMeta |
| [ModifiedDate](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.ModifiedDate.htm#Qlik_Engine_Connection_ModifiedDate) | Is generated by the engine.<br><br>Creation date of the connection or last modification date of the connection.<br><br>JSON property name: qModifiedDate |
| [Name](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.Name.htm#Qlik_Engine_Connection_Name) | Name of the connection.<br><br>This parameter is mandatory and must be set when creating or modifying a connection.<br><br>JSON property name: qName |
| [Password](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.Password.htm#Qlik_Engine_Connection_Password) | Password of the user who creates the connection.<br><br>This parameter is optional; it is only used for OLEDB, ODBC and CUSTOM connections.<br><br>A call to `GetConnection Method` does not return the password.<br><br>JSON property name: qPassword |
| [Type](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.Type.htm#Qlik_Engine_Connection_Type) | One of:<br><br>\* ODBC<br><br>\* OLEDB<br><br>\* &lt;Name of the custom connection file&gt;<br><br>\* folder<br><br>\* internet<br><br>Type of the connection.<br><br>This parameter is mandatory and must be set when creating or modifying a connection.<br><br>For ODBC, OLEDB and custom connections, the engine checks that the connection type matches the connection string.<br><br>The type is not case sensitive.<br><br>JSON property name: qType |
| [UserName](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.UserName.htm#Qlik_Engine_Connection_UserName) | Name of the user who creates the connection.<br><br>This parameter is optional; it is only used for OLEDB, ODBC and CUSTOM connections.<br><br>A call to `GetConnection Method` does not return the user name.<br><br>JSON property name: qUserName |