Mono Class Library: System.Runtime.InteropServices.GCHandle Overview | Members

System.Runtime.InteropServices.GCHandle.IsAllocated Property

Gets a bool value indicating whether the current System.Runtime.InteropServices.GCHandle instance is allocated.

public bool IsAllocated { get; }

Value

true if the handle is allocated; otherwise, false .

Remarks

This property is read-only.

Use this method to determine whether the System.Runtime.InteropServices.GCHandle is still available.

Note: When the garbage collector collects the object, the handle could still be resurrected in the finalizer.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0