Version

Dispose Method (WebScheduleDbProvider)

Allows the WebScheduleDbProvider to perform final clean-up of it's database connection resources before it's memory is released.
Syntax
'Declaration
 
Public Overrides Sub Dispose() 
public override void Dispose()
Remarks

The WebScheduleDbProvider closes and cleans-up the IDbConnection implementation it holds during Dispose. Only connections created by virtue of being the default connection, or through a call to the Connect method, are disposed of automatically by this method.

Note that if your application initializes the Connection of a WebScheduleDbProvider using either the ConnectionID property (at design-time), or at run-time by assigning an application-created IDbConnection implementation, then a call to Dispose will not free these resources. As a rule of thumb, when the constructor call to new is visible within your application source code, then it is the responsibility of your web application to ensure the connection is properly closed and disposed of when it is no longer needed.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also