Class CancellablePrivateOwnedHandle
public class CancellablePrivateOwnedHandle : CancellablePrivateHandle, IDisposable
- Inheritance
-
CancellablePrivateOwnedHandle
- Implements
- Inherited Members
Constructors
CancellablePrivateOwnedHandle(nint)
Creates a new instance of CancellablePrivateOwnedHandle. Assumes that the given pointer is owned by the runtime.
public CancellablePrivateOwnedHandle(nint ptr)
Parameters
ptr
nint
Methods
FromUnowned(nint)
Create a CancellablePrivateOwnedHandle from a pointer that is assumed unowned.
public static CancellablePrivateOwnedHandle FromUnowned(nint ptr)
Parameters
ptr
nintA pointer to a CancellablePrivate which is not owned by the runtime.
Returns
- CancellablePrivateOwnedHandle
A CancellablePrivateOwnedHandle
ReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
protected override bool ReleaseHandle()