Table of Contents

Class ObjectHandle

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

Constructors

ObjectHandle(IntPtr, object, bool)

public ObjectHandle(IntPtr handle, object obj, bool ownedRef)

Parameters

handle IntPtr
obj object
ownedRef bool

Properties

Handle

public IntPtr Handle { get; }

Property Value

IntPtr

IsInvalid

When overridden in a derived class, gets a value indicating whether the handle value is invalid.

public override sealed bool IsInvalid { get; }

Property Value

bool

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

Methods

ReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

protected override sealed 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.