GCHandle.Explicit 運算子

定義

GCHandle 物件的值轉換為另一種型別。

多載

Explicit(IntPtr to GCHandle)

GCHandle 是使用內部整數表示來儲存。

Explicit(GCHandle to IntPtr)

GCHandle 是使用內部整數表示來儲存。

Explicit(IntPtr to GCHandle)

來源:
GCHandle.cs
來源:
GCHandle.cs
來源:
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)

來源:
GCHandle.cs
來源:
GCHandle.cs
來源:
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擷取整數值。

另請參閱

適用於