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