Graphics::ReleaseHdc Method ()
.NET Framework (current version)
Namespace:
System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Return to top
Assembly: System.Drawing (in System.Drawing.dll)
public: [SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)] virtual void ReleaseHdc() sealed
Implements
IDeviceContext::ReleaseHdc()GetHdc and ReleaseHdc are two methods that allow you to get and release the handle for a Windows device. You should always follow a call to GetHdc with a call to ReleaseHdc when you are finished with the Windows handle.
SecurityPermission
for access to unmanaged code. Related enumeration: UnmanagedCode.
.NET Framework
Available since 2.0
Available since 2.0
Show: