Class PollFDOwnedHandle
public class PollFDOwnedHandle : PollFDHandle, IDisposable, IEquatable<PollFDHandle>
- Inheritance
-
PollFDOwnedHandle
- Implements
- Derived
- Inherited Members
Constructors
PollFDOwnedHandle(IntPtr)
Creates a new instance of PollFDOwnedHandle. Assumes that the given pointer is owned by the runtime.
public PollFDOwnedHandle(IntPtr ptr)
Parameters
ptr
IntPtr
Methods
FromUnowned(IntPtr)
Create a PollFDOwnedHandle from a pointer that is assumed unowned. To do so a boxed copy is created of the given pointer to be used as the handle.
public static PollFDOwnedHandle FromUnowned(IntPtr ptr)
Parameters
ptr
IntPtrA pointer to a PollFD which is not owned by the runtime.
Returns
- PollFDOwnedHandle
A PollFDOwnedHandle
ReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
protected override bool ReleaseHandle()