Hub.Dispose 方法

定義

多載

Dispose()
Dispose(Boolean)

釋放這個 Hub 實例目前使用的所有資源。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

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

true 如果方法正在叫用 Dispose() 這個方法,則為 ,否則 false 為 。

適用於