Partager via


RuntimeHelpers.AllocateTypeAssociatedMemory Méthode

Définition

Surcharges

Nom Description
AllocateTypeAssociatedMemory(Type, Int32)

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

AllocateTypeAssociatedMemory(Type, Int32, Int32)

AllocateTypeAssociatedMemory(Type, Int32)

Source:
RuntimeHelpers.CoreCLR.cs
Source:
RuntimeHelpers.CoreCLR.cs
Source:
RuntimeHelpers.CoreCLR.cs
Source:
RuntimeHelpers.CoreCLR.cs

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 à

AllocateTypeAssociatedMemory(Type, Int32, Int32)

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

Paramètres

type
Type
size
Int32
alignment
Int32

Retours

IntPtr

nativeint

S’applique à