语言

GCHandle.Explicit 操作员

定义

将对象的值转换为另一 GCHandle 种类型。

重载

名称 说明
Explicit(IntPtr to GCHandle)

A GCHandle 使用内部整数表示形式存储。

Explicit(GCHandle to IntPtr)

A GCHandle 使用内部整数表示形式存储。

Explicit(IntPtr to GCHandle)

Source:
GCHandle.cs
Source:
GCHandle.cs
Source:
GCHandle.cs
Source:
GCHandle.cs
Source:
GCHandle.cs

A 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
Source:
GCHandle.cs
Source:
GCHandle.cs

A 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检索整数值。

另请参阅

适用于