Control.IsDisposed プロパティ
定義
コントロールが破棄されているかどうかを示す値を取得します。Gets a value indicating whether the control has been disposed of.
public:
property bool IsDisposed { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsDisposed { get; }
member this.IsDisposed : bool
Public ReadOnly Property IsDisposed As Boolean
プロパティ値
コントロールが破棄されている場合は true
。それ以外の場合は false
。true
if the control has been disposed of; otherwise, false
.
- 属性
注釈
このプロパティが true
を返すと、コントロールは破棄され、有効な Windows コントロールとして参照できなくなります。When this property returns true
, the control is disposed of and 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, you cannot call its RecreateHandle method.