Control.DestroyHandle Method ()
.NET Framework (current version)
Destroys the handle associated with the control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
[<SecurityPermissionAttribute(SecurityAction.InheritanceDemand,
Flags = SecurityPermissionFlag.UnmanagedCode)>]
[<UIPermissionAttribute(SecurityAction.LinkDemand, Window = UIPermissionWindow.AllWindows)>]
abstract DestroyHandle : unit -> unit
[<SecurityPermissionAttribute(SecurityAction.InheritanceDemand,
Flags = SecurityPermissionFlag.UnmanagedCode)>]
[<UIPermissionAttribute(SecurityAction.LinkDemand, Window = UIPermissionWindow.AllWindows)>]
override DestroyHandle : unit -> unit
Notes to Inheritors:
When overriding DestroyHandle in a derived class, be sure to call the base class's DestroyHandle method to ensure that the handle is destroyed.
SecurityPermissionSecurityPermission
for inheriting classes to call unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode.
for the immediate caller to call unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode.
.NET Framework
Available since 1.1
Available since 1.1
Show: