Hub.Dispose 方法

定义

重载

Dispose()
Dispose(Boolean)

释放此 Hub 实例当前使用的所有资源。

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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

实现

适用于

Dispose(Boolean)

释放此 Hub 实例当前使用的所有资源。

protected:
 virtual void Dispose(bool disposing);
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

参数

disposing
Boolean

如果此方法由Dispose()该方法调用,则为 true,否则为 false

适用于