Class SafeObjectHandle
Abstract class SafeObjectHandle which contains all handles that are cleaned with DeleteObject
Inheritance
System.Object
SafeObjectHandle
Namespace: Dapplo.Windows.Gdi32.SafeHandles
Assembly: Dapplo.Windows.Gdi32.dll
Syntax
public abstract class SafeObjectHandle : SafeHandleZeroOrMinusOneIsInvalid
Constructors
| Improve this Doc View SourceSafeObjectHandle(Boolean)
Create SafeObjectHandle
Declaration
protected SafeObjectHandle(bool ownsHandle)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ownsHandle | True if the class owns the handle |
Methods
| Improve this Doc View SourceReleaseHandle()
Call DeleteObject
Declaration
protected override bool ReleaseHandle()
Returns
Type | Description |
---|---|
System.Boolean | true if this worked |