OPC Studio User's Guide and Reference
Dispose(Boolean) Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib Namespace > DisposableObject Class > Dispose Method : Dispose(Boolean) Method
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases the unmanaged resources used by the object and optionally releases the managed resources.
Syntax
'Declaration
 
Protected Overloads Sub Dispose( _
   ByVal disposing As Boolean _
) 
'Usage
 
Dim instance As DisposableObject
Dim disposing As Boolean
 
instance.Dispose(disposing)
protected void Dispose( 
   bool disposing
)
protected:
void Dispose( 
   bool disposing
) 

Parameters

disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also