Control.Disposing Control.Disposing Control.Disposing Control.Disposing Property

定義

取得值,指出基底 Control 類別是否正在處置的過程中。Gets a value indicating whether the base Control class is in the process of disposing.

public:
 property bool Disposing { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool Disposing { get; }
member this.Disposing : bool
Public ReadOnly Property Disposing As Boolean

屬性值

如果基底 true 類別正在處置的過程中,則為 Control,否則為 falsetrue if the base Control class is in the process of disposing; otherwise, false.

備註

當這個屬性會傳回true,基底Control類別正在處置。When this property returns true, the base Control class is in the process of disposing. 已處置控制項之後,不會再做為有效的 Windows 控制項參考它。After the control is disposed of, it can no longer be referenced as a valid Windows control. 即使控制項的執行個體已經處置,它仍然會保留在記憶體中移除從透過記憶體回收的記憶體之前。Even though the instance of a control is disposed of, it is still maintained in memory until it is removed from memory through garbage collection. 當控制項已經處置時,無法呼叫其RecreateHandle方法。When a control is disposed of, you cannot call its RecreateHandle method.

適用於

另請參閱