Dispose()
- Last UpdatedJul 22, 2024
- 1 minute read
Use the Dispose() method to free all memory resources associated this database connection object.
Syntax
void Dispose()
Remarks
If commands or transactions are running when Dispose() is called, Dispose() cancels the command or transaction object.