RuntimeHelpers.AllocateTypeAssociatedMemory Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Túlterhelések
| Name | Description |
|---|---|
| AllocateTypeAssociatedMemory(Type, Int32) |
Lefoglalja a hozzá társított |
| AllocateTypeAssociatedMemory(Type, Int32, Int32) |
AllocateTypeAssociatedMemory(Type, Int32)
- Forrás:
- RuntimeHelpers.CoreCLR.cs
- Forrás:
- RuntimeHelpers.CoreCLR.cs
- Forrás:
- RuntimeHelpers.CoreCLR.cs
- Forrás:
- RuntimeHelpers.CoreCLR.cs
- Forrás:
- RuntimeHelpers.CoreCLR.cs
Lefoglalja a hozzá társított type memóriát, és felszabadítja, ha és amikor a rendszer kiüríti a Type memóriát.
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éterek
- type
- Type
A lefoglalt memóriához társított típus.
- size
- Int32
A lefoglalni kívánt memória mennyisége bájtban.
Válaszok
nativeint
A lefoglalt memória.
A következőre érvényes:
AllocateTypeAssociatedMemory(Type, Int32, Int32)
- Forrás:
- RuntimeHelpers.CoreCLR.cs
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éterek
- type
- Type
- size
- Int32
- alignment
- Int32
Válaszok
nativeint