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 m_bMainConnectionIsCreatedLocal Then ' // Object is created in this class, so destroy it here. m_scoMainConnection.Close() m_scoMainConnection.Dispose() m_bMainConnectionIsCreatedLocal = True End If m_cpMainConnectionProvider = Nothing m_scoMainConnection = Nothing 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]]>]]>.