Control::DestroyHandle Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Destroys the handle associated with the control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected:
[SecurityPermissionAttribute(SecurityAction::InheritanceDemand, 
	Flags = SecurityPermissionFlag::UnmanagedCode)]
[UIPermissionAttribute(SecurityAction::LinkDemand, Window = UIPermissionWindow::AllWindows)]
virtual void DestroyHandle()

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.

SecurityPermission

for inheriting classes to call unmanaged code. Associated enumeration: SecurityPermissionFlag::UnmanagedCode.

SecurityPermission

for the immediate caller to call unmanaged code. Associated enumeration: SecurityPermissionFlag::UnmanagedCode.

.NET Framework
Available since 1.1
Return to top
Show: