CounterSet.Dispose 方法

定义

释放此对象使用的资源。Releases resources used by this object.

重载

Dispose()

释放此对象使用的所有非托管资源。Releases all unmanaged resources used by this object.

Dispose(Boolean)

释放此对象使用的所有非托管资源,并可选择释放托管资源。Releases all unmanaged resources used by this object and optionally release the managed resources.

Dispose()

释放此对象使用的所有非托管资源。Releases all unmanaged resources used by this object.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

实现

适用于

Dispose(Boolean)

释放此对象使用的所有非托管资源,并可选择释放托管资源。Releases all unmanaged resources used by this object and optionally release the managed resources.

protected:
 virtual void Dispose(bool disposing);
protected virtual void Dispose (bool disposing);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

参数

disposing
Boolean

如果这是从 Dispose 方法调用的,则为 True;如果是从终结器调用的,则为 FalseTrue if this was called from the Dispose method, False if called from the finalizer.

属性

适用于