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