다음을 통해 공유


Control.IsDisposed 속성

컨트롤이 삭제되었는지 여부를 나타내는 값을 가져옵니다.

네임스페이스: System.Windows.Forms
어셈블리: System.Windows.Forms(system.windows.forms.dll)

구문

‘선언
Public ReadOnly Property IsDisposed As Boolean
‘사용 방법
Dim instance As Control
Dim value As Boolean

value = instance.IsDisposed
public bool IsDisposed { get; }
public:
property bool IsDisposed {
    bool get ();
}
/** @property */
public boolean get_IsDisposed ()
public function get IsDisposed () : boolean

속성 값

컨트롤이 삭제되었으면 true이고, 그렇지 않으면 false입니다.

설명

이 속성이 true를 반환하면 해당 컨트롤이 삭제되어 더 이상 올바른 Windows 컨트롤로 참조될 수 없습니다. 컨트롤의 인스턴스가 삭제되더라도 가비지 수집을 통해 메모리에서 제거할 때까지는 메모리에 컨트롤이 유지됩니다. 삭제한 컨트롤의 RecreateHandle 메서드는 호출할 수 없습니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

참고 항목

참조

Control 클래스
Control 멤버
System.Windows.Forms 네임스페이스
Dispose
GC
IsHandleCreated
CreateHandle
DestroyHandle
RecreateHandle
Control.Handle 속성