TimingLogger.Dispose Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Dispose() |
Dispose of the current instance. Dispose() for more information. |
| Dispose(Boolean) |
Dispose of the current instance, stopping timing if necessary. Note that if timing is stopped here, the log will contain the default message (Stop(String)) |
Dispose()
Dispose of the current instance. Dispose() for more information.
public void Dispose();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Implements
Remarks
Calls the protected Dispose(Boolean) overload with true and suppresses finalization.
Applies to
Dispose(Boolean)
Dispose of the current instance, stopping timing if necessary. Note that if timing is stopped here, the log will contain the default message (Stop(String))
protected virtual void Dispose(bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Parameters
- disposing
- Boolean
The public Dispose() method passes true; the finalizer passes false. The base implementation does not read this value.
Remarks
On its first call, the base implementation stops any active measurement and marks the instance as disposed.