Class PromiseOwnedHandle
public class PromiseOwnedHandle : PromiseHandle, IDisposable, IEquatable<PromiseHandle>
- Inheritance
-
PromiseOwnedHandle
- Implements
- Derived
- Inherited Members
Constructors
PromiseOwnedHandle(nint)
Creates a new instance of PromiseOwnedHandle. Assumes that the given pointer is owned by the runtime.
public PromiseOwnedHandle(nint ptr)
Parameters
ptr
nint
Methods
FromUnowned(nint)
Create a PromiseOwnedHandle 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 PromiseOwnedHandle FromUnowned(nint ptr)
Parameters
ptr
nintA pointer to a Promise which is not owned by the runtime.
Returns
- PromiseOwnedHandle
A PromiseOwnedHandle
ReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
protected override bool ReleaseHandle()