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