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