Share via


ComWrappers.ComputeVtables(Object, CreateComInterfaceFlags, Int32) Metodo

Definizione

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