PinnedGCHandle<T>.FromIntPtr(IntPtr) メソッド

定義

ハンドルからマネージド オブジェクトに作成された新しい PinnedGCHandle<T> オブジェクトを返します。

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

パラメーター

value
IntPtr

nativeint

IntPtr オブジェクトを作成するマネージド オブジェクトのPinnedGCHandle<T> ハンドル。

返品

値パラメーターに対応する新しい PinnedGCHandle<T> オブジェクト。

注釈

このメソッドは、指定されたハンドル値を検証しません。 呼び出し元は、ハンドルの有効性を確認する必要があります。

PinnedGCHandle<T>IntPtr表現は、GCHandleと相互運用できません。

適用対象