Redigeeri

Jagamisviis:


GCHandle.Explicit Operator

Definition

Converts the value of a GCHandle object to another type.

Overloads

Explicit(IntPtr to GCHandle)

A GCHandle is stored using an internal integer representation.

Explicit(GCHandle to IntPtr)

A GCHandle is stored using an internal integer representation.

Explicit(IntPtr to GCHandle)

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

A GCHandle is stored using an internal integer representation.

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

Parameters

value
IntPtr

nativeint

An IntPtr that indicates the handle for which the conversion is required.

Returns

The stored GCHandle object using an internal integer representation.

Attributes

Remarks

This method allows you to retrieve a GCHandle from an integer value.

See also

Applies to

Explicit(GCHandle to IntPtr)

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

A GCHandle is stored using an internal integer representation.

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

Parameters

value
GCHandle

The GCHandle for which the integer is required.

Returns

IntPtr

nativeint

The integer value.

Remarks

This method can be used to retrieve the integer value from a GCHandle.

See also

Applies to