Share via


RuntimeHelpers.AllocateTypeAssociatedMemory(Type, Int32) メソッド

定義

type に関連付けられているメモリを割り当てます。Type がアンロードされると解放されます。

public:
 static IntPtr AllocateTypeAssociatedMemory(Type ^ type, int size);
public static IntPtr AllocateTypeAssociatedMemory (Type type, int size);
static member AllocateTypeAssociatedMemory : Type * int -> nativeint
Public Shared Function AllocateTypeAssociatedMemory (type As Type, size As Integer) As IntPtr

パラメーター

type
Type

割り当てられたメモリに関連付けられている型。

size
Int32

割り当てるメモリの量 (バイト単位)。

戻り値

IntPtr

nativeint

割り当てられたメモリ。

適用対象