Class ObjectHandle
public class ObjectHandle : SafeHandle, IDisposable
- Inheritance
-
ObjectHandle
- Implements
- Derived
- Inherited Members
Constructors
ObjectHandle(nint, bool)
public ObjectHandle(nint handle, bool ownsHandle)
Parameters
Properties
IsInvalid
When overridden in a derived class, gets a value indicating whether the handle value is invalid.
public override bool IsInvalid { get; }
Property Value
Methods
AddMemoryPressure()
protected virtual void AddMemoryPressure()
For<T>(ConstructArgument[])
public static ObjectHandle For<T>(ConstructArgument[] constructArguments) where T : Object, GTypeProvider
Parameters
constructArguments
ConstructArgument[]
Returns
Type Parameters
T
ReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
protected override bool ReleaseHandle()
Returns
- bool
true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false. In this case, it generates a releaseHandleFailed Managed Debugging Assistant.
RemoveMemoryPressure()
protected virtual void RemoveMemoryPressure()