ComWrappers.ComputeVtables(Object, CreateComInterfaceFlags, Int32) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Calcola l'elemento Vtable desiderato per obj
, rispettando i valori di flags
.
protected:
abstract System::Runtime::InteropServices::ComWrappers::ComInterfaceEntry* ComputeVtables(System::Object ^ obj, System::Runtime::InteropServices::CreateComInterfaceFlags flags, [Runtime::InteropServices::Out] int % count);
protected abstract System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* ComputeVtables (object obj, System.Runtime.InteropServices.CreateComInterfaceFlags flags, out int count);
abstract member ComputeVtables : obj * System.Runtime.InteropServices.CreateComInterfaceFlags * int -> nativeptr<System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry>
Parametri
- obj
- Object
Destinazione degli elementi Vtable restituiti.
- flags
- CreateComInterfaceFlags
Flag usati per calcolare gli elementi Vtable.
- count
- Int32
Numero di elementi contenuti nella memoria restituita.
Restituisce
Puntatore ComWrappers.ComInterfaceEntry contenente la memoria per tutte le voci dell'interfaccia COM.
Commenti
Tutta la memoria restituita da questa funzione deve essere memoria non gestita o aggiunta di memoria gestita oppure essere stata allocata con l'API AllocateTypeAssociatedMemory(Type, Int32) .
Se le voci dell'interfaccia non possono essere create e non viene restituito un count
valore negativo count
o null
non zero, la chiamata a GetOrCreateComInterfaceForObject(Object, CreateComInterfaceFlags) genererà un ArgumentExceptionoggetto .
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per