Dispose of the resources associated with this Target instance.
Namespace:
Quanser.TargetsAssembly: Quanser.Targets (in Quanser.Targets.dll)
Syntax
Visual Basic (Declaration) |
---|
Protected Overridable Sub Dispose ( _ disposing As Boolean _ ) |
C# |
---|
protected virtual void Dispose( bool disposing ) |
Visual C++ |
---|
protected: virtual void Dispose( bool disposing ) |
JavaScript |
---|
function dispose(disposing); |
Parameters
- disposing
- Type: System..::.Boolean
True when the instance is being explicitly disposed. False when called from the garbage collector.
Remarks
This method executes in two contexts. If disposing is true then it is being called via Dispose(), which means it has been called directly or indirectly by user code. Managed and unmanaged resources should be disposed in this case.
If disposing is false then the method is being called from the garbage collector as part of finalization and in this case, managed objects should not be referenced. Hence only unmanaged resources should be released.
See http://msdn.microsoft.com/en-us/library/system.idisposable.aspx for details.