protected function Dispose( bIsDisposing : ]]>booleana]]>]]> );
ParametersbIsDisposing
$END-IFNOTEMPTY$
Visual Basic
Copy Code
]]>
Overridable Overloads Protected Sub Dispose(ByVal bIsDisposing As Boolean) ' // Check to see if Dispose has already been called. If Not m_bIsDisposed Then If bIsDisposing Then ' // Dispose managed resources. If Not (m_stCurrentTransaction Is Nothing) Then m_stCurrentTransaction.Dispose() m_stCurrentTransaction = Nothing End If If Not (m_scoDBConnection Is Nothing) Then ' // closing the connection will abort (rollback) any pending transactions m_scoDBConnection.Close() m_scoDBConnection.Dispose() m_scoDBConnection = Nothing End If End If End If m_bIsDisposed = True End Sub
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2The .NET Framework does not support all versions of every platform. For a list of the supported versions, see
]]>System Requirementsa]]>]]>.