Redigera

Dela via


WeakGCHandle<T>.ToIntPtr(WeakGCHandle<T>) Method

Definition

Returns the internal integer representation of a WeakGCHandle<T> object.

public:
 static IntPtr ToIntPtr(System::Runtime::InteropServices::WeakGCHandle<T> value);
public static IntPtr ToIntPtr(System.Runtime.InteropServices.WeakGCHandle<T> value);
static member ToIntPtr : System.Runtime.InteropServices.WeakGCHandle<'T (requires 'T : null)> -> nativeint
Public Shared Function ToIntPtr (value As WeakGCHandle(Of T)) As IntPtr

Parameters

value
WeakGCHandle<T>

A WeakGCHandle<T> object to retrieve an internal integer representation from.

Returns

IntPtr

nativeint

An IntPtr object that represents a WeakGCHandle<T> object.

Remarks

The IntPtr representation of WeakGCHandle<T> is not interchangable with GCHandle.

Applies to