# ModifyConnection Method

## Overloads

| [ModifyConnection(String, Connection, Boolean)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.ModifyConnection.htm#Qlik_Engine_App_ModifyConnection_System_String_Qlik_Engine_Connection_System_Boolean_) |  | Updates a connection. |
| --- | --- | --- |

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

## ModifyConnection(String, Connection, Boolean)

Updates a connection.

### Declaration

```

          public void ModifyConnection([QixName("qConnectionId")] string connectionId, [QixName("qConnection")] Connection connection, [QixName("qOverrideCredentials")] bool overrideCredentials = false)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | connectionId | Identifier of the connection. |
| [Connection](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.htm) | connection | Information about the connection.<br>Properties that can be updated. |
| System.Boolean | overrideCredentials | Set this parameter to true to override the user name and password. |

### Implements

[IApp.ModifyConnection(String, Connection, Boolean)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ModifyConnection.htm#Qlik_Engine_IApp_ModifyConnection_System_String_Qlik_Engine_Connection_System_Boolean_)

### Remarks

The identifier of a connection cannot be updated. qType cannot be modified with the ModifyConnection method.