Mono Class Library: System.Runtime.InteropServices Namespace

System.Runtime.InteropServices.GCHandle Structure

Provides a means for referencing a managed object from unmanaged memory.

See Also: GCHandle Members

[System.Runtime.InteropServices.ComVisible(true)]
public struct GCHandle

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

Use a System.Runtime.InteropServices.GCHandle when an object reference is required to be accessible from unmanaged memory.

The System.Runtime.InteropServices.GCHandleType enumeration describes the possible System.Runtime.InteropServices.GCHandle types.

Note: If the type of the System.Runtime.InteropServices.GCHandle is GCHandleType.Normal, then it is an opaque handle, and the address of the object it references cannot be resolved through it.

Requirements

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