Επεξεργασία

Κοινή χρήση μέσω


FileLogTraceListener.Dispose(Boolean) Method

Definition

Closes the underlying stream and optionally releases the managed resources.

protected:
 override void Dispose(bool disposing);
protected override void Dispose (bool disposing);
override this.Dispose : bool -> unit
Protected Overrides Sub Dispose (disposing As Boolean)

Parameters

disposing
Boolean

True releases both managed and unmanaged resources; False releases only unmanaged resources.

Remarks

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.

Applies to