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