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