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