public enum GCHandleType
Object
ValueType
Enum
GCHandleType
mscorlib
RuntimeInfrastructure
Represents the types of handles the GCHandle class can allocate.
System.Runtime.InteropServices Namespace
GCHandleType Fields
GCHandleType.Normal Field
GCHandleType.Pinned Field
GCHandleType.value__ Field
Normal = 2;
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.
System.Runtime.InteropServices.GCHandleType Enum, System.Runtime.InteropServices Namespace
Pinned = 3;
Similar to System.Runtime.InteropServices.GCHandleType.Normal, but allows the address of the object, which the current GCHandle represents to be taken.
System.Runtime.InteropServices.GCHandleType Enum, System.Runtime.InteropServices Namespace
value__;
System.Runtime.InteropServices.GCHandleType Enum, System.Runtime.InteropServices Namespace