OPC Studio User's Guide and Reference
InternalDispose Method (DisposableObject)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib Namespace > DisposableObject Class : InternalDispose Method
Indicates whether the method call comes from a System.IDisposable.Dispose method (its value is true) or from a finalizer (its value is false).
Called when the object should dispose its resources.
Syntax
'Declaration
 
Protected Overridable Sub InternalDispose( _
   ByVal disposing As Boolean _
) 
'Usage
 
Dim instance As DisposableObject
Dim disposing As Boolean
 
instance.InternalDispose(disposing)
protected virtual void InternalDispose( 
   bool disposing
)
protected:
virtual void InternalDispose( 
   bool disposing
) 

Parameters

disposing
Indicates whether the method call comes from a System.IDisposable.Dispose method (its value is true) or from a finalizer (its value is false).
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