Control.DestroyHandle Control.DestroyHandle Control.DestroyHandle Control.DestroyHandle Method

定義

終結與這個控制項相關的控制代碼。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
立即呼叫端呼叫 unmanaged 程式碼。for the immediate caller to call unmanaged code. 相關聯的列舉型別: UnmanagedCodeAssociated enumeration: UnmanagedCode.

適用於

另請參閱