Control.DestroyHandle 方法

定義

終結與這個控制項相關的控制代碼。Destroys the handle associated with the control.

protected:
 virtual void DestroyHandle();
protected virtual void DestroyHandle ();
abstract member DestroyHandle : unit -> unit
override this.DestroyHandle : unit -> unit
Protected Overridable Sub DestroyHandle ()

給繼承者的注意事項

覆寫衍生類別中的 DestroyHandle() 時,請務必呼叫基類的 DestroyHandle() 方法,以確保控制碼已終結。When overriding DestroyHandle() in a derived class, be sure to call the base class's DestroyHandle() method to ensure that the handle is destroyed.

安全性

SecurityPermission
,讓呼叫端立即呼叫非受控碼。for the immediate caller to call unmanaged code. 關聯的列舉型別:UnmanagedCodeAssociated enumeration: UnmanagedCode.

適用於

另請參閱