GCHandle.Explicit 运算符

定义

GCHandle 对象的值转换为其他类型。

重载

Explicit(IntPtr to GCHandle)

GCHandle 以内部整数表示形式存储。

Explicit(GCHandle to IntPtr)

GCHandle 以内部整数表示形式存储。

Explicit(IntPtr to GCHandle)

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.GCHandle
static member op_Explicit : nativeint -> System.Runtime.InteropServices.GCHandle
Public Shared Narrowing Operator CType (value As IntPtr) As GCHandle

参数

value
IntPtr

nativeint

一个 IntPtr,它指示需要该转换的句柄。

返回

使用内部整数表示形式的已存储 GCHandle 对象。

属性

注解

此方法允许从整数值检索 GCHandle

另请参阅

适用于

Explicit(GCHandle to IntPtr)

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 -> nativeint
Public Shared Narrowing Operator CType (value As GCHandle) As IntPtr

参数

value
GCHandle

需要该整数的 GCHandle

返回

IntPtr

nativeint

整数值。

注解

此方法可用于从 GCHandle检索整数值。

另请参阅

适用于