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
供直接调用方调用非托管代码。for the immediate caller to call unmanaged code. 关联枚举:UnmanagedCodeAssociated enumeration: UnmanagedCode.

适用于

另请参阅