Table of Contents

Class ObjectHandle

Namespace
GObject.Internal
Assembly
GObject-2.0.dll
public class ObjectHandle : SafeHandle, IDisposable
Inheritance
ObjectHandle
Implements
Derived
Inherited Members

Constructors

ObjectHandle(nint, bool)

public ObjectHandle(nint handle, bool ownsHandle)

Parameters

handle nint
ownsHandle bool

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

bool

true if the handle value is invalid; otherwise, false.

Methods

AddMemoryPressure()

protected virtual void AddMemoryPressure()

For<T>(ConstructArgument[])

public static ObjectHandle For<T>(ConstructArgument[] constructArguments) where T : Object, GTypeProvider

Parameters

constructArguments ConstructArgument[]

Returns

ObjectHandle

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()