HwndHost.Dispose HwndHost.Dispose HwndHost.Dispose HwndHost.Dispose Method

定義

立即釋放物件可能佔用的任何系統資源。Immediately frees any system resources that the object might hold.

多載

Dispose() Dispose() Dispose() Dispose()

立即釋放物件可能佔用的任何系統資源。Immediately frees any system resources that the object might hold.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

立即釋放物件可能佔用的任何系統資源。Immediately frees any system resources that the object might hold.

備註

重要

這個類型或成員不可以使用網際網路安全性區域中。This type or member is not available in the Internet security zone.

在衍生的類別可以覆寫這個方法 (由Dispose(Boolean)簽章) 如果他們需要執行其他清除工作。Derived classes can override this method (by the Dispose(Boolean) signature) if they need to do additional cleanup.

Dispose() Dispose() Dispose() Dispose()

立即釋放物件可能佔用的任何系統資源。Immediately frees any system resources that the object might hold.

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

實作

備註

重要

這個類型或成員不可以使用網際網路安全性區域中。This type or member is not available in the Internet security zone.

可以覆寫此方法,但不是此簽章。This method can be overridden, but not by this signature. 請參閱Dispose(Boolean)可覆寫的簽章。See Dispose(Boolean) for the overridable signature. 此無參數的簽章是介面合約所需,且它會有效地呼叫作用Dispose(Boolean)實作disposing正在trueThis parameterless signature is the one required by the interface contract, and it effectively calls the active Dispose(Boolean) implementation with disposing being true.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

立即釋放物件可能佔用的任何系統資源。Immediately frees any system resources that the object might hold.

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
Protected Overridable Sub Dispose (disposing As Boolean)

參數

disposing
Boolean Boolean Boolean Boolean

設定為true如果從明確處置器呼叫和false否則。Set to true if called from an explicit disposer and false otherwise.

備註

重要

這個類型或成員不可以使用網際網路安全性區域中。This type or member is not available in the Internet security zone.

在衍生的類別可以覆寫這個方法,如果他們需要執行其他清除工作。Derived classes can override this method if they need to do additional cleanup. 不過,它們也應該呼叫基底實作,以確保所有資源都已都釋放。However, they should also call the base implementation to ensure that all resources are freed. 基底實作會相當多的工作,以釋出已知的基底類別的資源。The base implementation does fairly substantial work to free resources that are known to the base class.

如果正在主控視窗,也會在終結。If a window is being hosted, it will be destroyed.

呼叫的執行緒必須發送器相同。The calling thread must be the same as the dispatcher.

適用於