Vertragsverwaltung-Klassenbibliothek  

clsConnectionProvider.Dispose (System.Boolean) -Methode

[Visual Basic]
Protected Overloads Overridable Sub Dispose( _ 
ByVal bIsDisposing As Boolean
)

Parameter

bIsDisposing

Quellcode

[Visual Basic]
		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

Forderungen

Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Siehe auch

clsConnectionProvider