GCHandle.Explicit 操作员 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 GCHandle 对象的值转换为其他类型。
重载
| Explicit(IntPtr to GCHandle) | GCHandle 以内部整数表示形式存储。 | 
| Explicit(GCHandle to IntPtr) | GCHandle 以内部整数表示形式存储。 | 
Explicit(IntPtr to GCHandle)
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
GCHandle 以内部整数表示形式存储。
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 GCHandle参数
返回
使用内部整数表示形式的已存储 GCHandle 对象。
- 属性
注解
此方法允许从整数值检索 GCHandle 。
另请参阅
适用于
Explicit(GCHandle to IntPtr)
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
- Source:
- GCHandle.cs
GCHandle 以内部整数表示形式存储。
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 IntPtr参数
返回
nativeint
整数值。
注解
此方法可用于从 GCHandle检索整数值。