GCHandle.Explicit Operator 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the value of a GCHandle object to another type.
Overloads
| Explicit(IntPtr to GCHandle) | A GCHandle is stored using an internal integer representation. | 
| Explicit(GCHandle to IntPtr) | A GCHandle is stored using an internal integer representation. | 
Explicit(IntPtr to GCHandle)
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
A GCHandle is stored using an internal integer representation.
public:
 static explicit operator System::Runtime::InteropServices::GCHandle(IntPtr value);[System.Security.SecurityCritical]
public static explicit operator System.Runtime.InteropServices.GCHandle(IntPtr value);public static explicit operator System.Runtime.InteropServices.GCHandle(IntPtr value);[<System.Security.SecurityCritical>]
static member op_Explicit : nativeint -> System.Runtime.InteropServices.GCHandlestatic member op_Explicit : nativeint -> System.Runtime.InteropServices.GCHandlePublic Shared Narrowing Operator CType (value As IntPtr) As GCHandleParameters
Returns
The stored GCHandle object using an internal integer representation.
- Attributes
Remarks
This method allows you to retrieve a GCHandle from an integer value.
See also
Applies to
Explicit(GCHandle to IntPtr)
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
A GCHandle is stored using an internal integer representation.
public:
 static explicit operator IntPtr(System::Runtime::InteropServices::GCHandle value);public static explicit operator IntPtr(System.Runtime.InteropServices.GCHandle value);static member op_Explicit : System.Runtime.InteropServices.GCHandle -> nativeintPublic Shared Narrowing Operator CType (value As GCHandle) As IntPtrParameters
Returns
nativeint
The integer value.
Remarks
This method can be used to retrieve the integer value from a GCHandle.