Share via


RuntimeHelpers.AllocateTypeAssociatedMemory(Type, Int32) Metodo

Definizione

Alloca la memoria associata a type e viene liberata se e quando Type viene scaricato.

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

Parametri

type
Type

Tipo associato alla memoria allocata.

size
Int32

Quantità di memoria da allocare, in byte.

Restituisce

IntPtr

nativeint

Memoria allocata.

Si applica a