# Dispose Method

## Overloads

| [Dispose(Boolean)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.Dispose.htm#Qlik_Engine_Hub_Dispose_System_Boolean_) |  | Disposes the connection |
| --- | --- | --- |

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

## Dispose(Boolean)

Disposes the connection

### Declaration

```

          protected override void Dispose(bool disposing)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Boolean | disposing | True if we are disposing |

### Overrides

[QixClassBase.Dispose(Boolean)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.QixClassBase.Dispose.htm#Qlik_Engine_QixClassBase_Dispose_System_Boolean_)