PointerArrayMarshaller<T,TUnmanagedElement>.AllocateContainerForUnmanagedElements Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Alloue de la mémoire pour la représentation non managée du tableau.
public:
static TUnmanagedElement* AllocateContainerForUnmanagedElements(cli::array <T*> ^ managed, [Runtime::InteropServices::Out] int % numElements);
public static TUnmanagedElement* AllocateContainerForUnmanagedElements (T*[]? managed, out int numElements);
static member AllocateContainerForUnmanagedElements : nativeptr<'T>[] * int -> nativeptr<'UnmanagedElement>
Paramètres
- managed
- T*[]
Tableau managé à marshaler.
- numElements
- Int32
Nombre d’éléments non managés.
Retours
Pointeur non managé vers la mémoire allouée.