GCHandle.Explicit Operator

Definicja

Konwertuje wartość GCHandle obiektu na inny typ.

Przeciążenia

Explicit(IntPtr to GCHandle)

Element A GCHandle jest przechowywany przy użyciu wewnętrznej reprezentacji całkowitej.

Explicit(GCHandle to IntPtr)

Element A GCHandle jest przechowywany przy użyciu wewnętrznej reprezentacji całkowitej.

Explicit(IntPtr to GCHandle)

Źródło:
GCHandle.cs
Źródło:
GCHandle.cs
Źródło:
GCHandle.cs

Element A GCHandle jest przechowywany przy użyciu wewnętrznej reprezentacji całkowitej.

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

Parametry

value
IntPtr

nativeint

Element IntPtr wskazujący uchwyt, dla którego wymagana jest konwersja.

Zwraca

Przechowywany GCHandle obiekt używający wewnętrznej reprezentacji całkowitej.

Atrybuty

Uwagi

Ta metoda umożliwia pobranie wartości GCHandle z liczby całkowitej.

Zobacz też

Dotyczy

Explicit(GCHandle to IntPtr)

Źródło:
GCHandle.cs
Źródło:
GCHandle.cs
Źródło:
GCHandle.cs

Element A GCHandle jest przechowywany przy użyciu wewnętrznej reprezentacji całkowitej.

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

Parametry

value
GCHandle

Liczba całkowita GCHandle , dla której jest wymagana liczba całkowita.

Zwraca

IntPtr

nativeint

Wartość całkowita.

Uwagi

Ta metoda może służyć do pobierania wartości całkowitej z klasy GCHandle.

Zobacz też

Dotyczy