System.Runtime.InteropServices.GCHandleType Enum

public enum GCHandleType

Base Types

Object
  ValueType
    Enum
      GCHandleType

Assembly

mscorlib

Library

RuntimeInfrastructure

Summary

Represents the types of handles the GCHandle class can allocate.

See Also

System.Runtime.InteropServices Namespace

Members

GCHandleType Fields

GCHandleType.Normal Field
GCHandleType.Pinned Field
GCHandleType.value__ Field


GCHandleType.Normal Field

Normal = 2;

Summary

A System.Runtime.InteropServices.GCHandleType.Normal is an opaque handle, and the address of the object it references cannot be resolved through it. The System.Runtime.InteropServices.GCHandleType.Normal also prevents the collection of the referenced object by the GC.

See Also

System.Runtime.InteropServices.GCHandleType Enum, System.Runtime.InteropServices Namespace

GCHandleType.Pinned Field

Pinned = 3;

Summary

Similar to System.Runtime.InteropServices.GCHandleType.Normal, but allows the address of the object, which the current GCHandle represents to be taken.

See Also

System.Runtime.InteropServices.GCHandleType Enum, System.Runtime.InteropServices Namespace

GCHandleType.value__ Field

value__;

See Also

System.Runtime.InteropServices.GCHandleType Enum, System.Runtime.InteropServices Namespace