RuntimeHelpers.AllocateTypeAssociatedMemory Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| AllocateTypeAssociatedMemory(Type, Int32) |
Allokerar minne som är associerat med |
| AllocateTypeAssociatedMemory(Type, Int32, Int32) |
AllocateTypeAssociatedMemory(Type, Int32)
Allokerar minne som är associerat med type och frigörs om och när tas Type bort.
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
Parametrar
- type
- Type
Den typ som är associerad med det allokerade minnet.
- size
- Int32
Mängden minne som ska allokeras i byte.
Returer
nativeint
Det allokerade minnet.
Gäller för
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
Parametrar
- type
- Type
- size
- Int32
- alignment
- Int32
Returer
nativeint