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