Share via


RuntimeHelpers.AllocateTypeAssociatedMemory(Type, Int32) Método

Definición

Asigna la memoria que está asociada al parámetro type y se libera siempre que se descargue 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

Parámetros

type
Type

Tipo asociado a la memoria asignada.

size
Int32

Cantidad de memoria que se va a asignar, en bytes.

Devoluciones

IntPtr

nativeint

Memoria asignada.

Se aplica a