# IConnection Interface

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

## Syntax

```
[ValueClass]
public interface IConnection
```

## Properties

| Name | Description |
| --- | --- |
| [ConnectionString](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IConnection.ConnectionString.htm#Qlik_Engine_IConnection_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/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IConnection.Id.htm#Qlik_Engine_IConnection_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/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IConnection.LogOn.htm#Qlik_Engine_IConnection_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/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IConnection.Meta.htm#Qlik_Engine_IConnection_Meta) | Information about the connection.<br><br>JSON property name: qMeta |
| [ModifiedDate](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IConnection.ModifiedDate.htm#Qlik_Engine_IConnection_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/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IConnection.Name.htm#Qlik_Engine_IConnection_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/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IConnection.Password.htm#Qlik_Engine_IConnection_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/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IConnection.Type.htm#Qlik_Engine_IConnection_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/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IConnection.UserName.htm#Qlik_Engine_IConnection_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 |