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



OpcLabs.BaseLibForms Assembly > OpcLabs.BaseLib.Forms.Browsing.Generalized Namespace > BrowseControl Class > Dispose Method : Dispose(Boolean) Method
true to release both managed and unmanaged resources; false to release only unmanaged resources.true to release both managed and unmanaged resources; false to release only unmanaged resources.true if managed resources should be disposed; otherwise, false.
Releases the unmanaged resources used by the System.Windows.Forms.Control and its child controls and optionally releases the managed resources.Releases the unmanaged resources used by the System.Windows.Forms.Control and its child controls and optionally releases the managed resources. Clean up any resources being used.
Syntax
'Declaration
 
Protected Overloads Overrides Sub Dispose( _
   ByVal disposing As Boolean _
) 
'Usage
 
Dim instance As BrowseControl
Dim disposing As Boolean
 
instance.Dispose(disposing)
protected override void Dispose( 
   bool disposing
)
protected:
void Dispose( 
   bool disposing
) override 

Parameters

disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.true to release both managed and unmanaged resources; false to release only unmanaged resources.true if managed resources should be disposed; otherwise, false.
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