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