Class ObjectHandle
public class ObjectHandle : SafeHandle, IDisposable
- Inheritance
-
ObjectHandle
- Implements
- Derived
- Inherited Members
Constructors
ObjectHandle(nint)
public ObjectHandle(nint handle)
Parameters
handlenint
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()
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()