FileLogTraceListener::Dispose Method (Boolean)
.NET Framework (current version)
Closes the underlying stream and optionally releases the managed resources.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
protected: [HostProtectionAttribute(SecurityAction::LinkDemand, Synchronization = true)] virtual void Dispose( bool disposing ) override
Parameters
- disposing
-
Type:
System::Boolean
True releases both managed and unmanaged resources; False releases only unmanaged resources.
When the disposing parameter is True, this method releases all resources held by any managed objects that this FileLogTraceListener references. This method invokes the Dispose method of each referenced object.
Notes to Inheritors:
Dispose can be called multiple times by other objects. When overriding Dispose, be careful not to reference objects that have been previously disposed of in an earlier call to Dispose.
This method calls the Dispose method of the base class, Dispose.
.NET Framework
Available since 2.0
Available since 2.0
Show: