RuntimeHelpers.AllocateTypeAssociatedMemory(Type, Int32) Methode

Definition

Weist Arbeitsspeicher zu, der dem type zugeordnet ist und freigegeben wird, wenn der Type entladen wird.

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

Parameter

type
Type

Der dem zugewiesenen Arbeitsspeicher zugeordnete Typ.

size
Int32

Die Menge an zuzuweisendem Arbeitsspeicher in Bytes.

Gibt zurück

IntPtr

nativeint

Der zugewiesene Arbeitsspeicher.

Gilt für: