RuntimeHelpers.AllocateTypeAssociatedMemory(Type, Int32) Méthode

Définition

Alloue de la mémoire associée à type et libérée lorsque Type est déchargé.

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

Paramètres

type
Type

Type associé à la mémoire allouée.

size
Int32

Quantité de mémoire à allouer en octets.

Retours

IntPtr

nativeint

Mémoire allouée.

S’applique à