GCHandle.Explicit Operator

Definition

Konverterar värdet för ett objekt till en GCHandle annan typ.

Överlagringar

Name Description
Explicit(IntPtr to GCHandle)

A GCHandle lagras med en intern heltalsrepresentation.

Explicit(GCHandle to IntPtr)

A GCHandle lagras med en intern heltalsrepresentation.

Explicit(IntPtr to GCHandle)

Källa:
GCHandle.cs
Källa:
GCHandle.cs
Källa:
GCHandle.cs
Källa:
GCHandle.cs
Källa:
GCHandle.cs

A GCHandle lagras med en intern heltalsrepresentation.

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

Parametrar

value
IntPtr

nativeint

Ett IntPtr som anger det handtag som konverteringen krävs för.

Returer

Det lagrade GCHandle objektet med en intern heltalsrepresentation.

Attribut

Kommentarer

Med den här metoden kan du hämta en GCHandle från ett heltalsvärde.

Se även

Gäller för

Explicit(GCHandle to IntPtr)

Källa:
GCHandle.cs
Källa:
GCHandle.cs
Källa:
GCHandle.cs
Källa:
GCHandle.cs
Källa:
GCHandle.cs

A GCHandle lagras med en intern heltalsrepresentation.

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

Parametrar

value
GCHandle

För GCHandle vilket heltal krävs.

Returer

IntPtr

nativeint

Heltalsvärdet.

Kommentarer

Den här metoden kan användas för att hämta heltalsvärdet från en GCHandle.

Se även

Gäller för