ComWrappers.ComputeVtables(Object, CreateComInterfaceFlags, Int32) メソッド

定義

objの値を考慮して、flagsの目的の Vtable を計算します。

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>

パラメーター

obj
Object

返された Vtable のターゲット。

flags
CreateComInterfaceFlags

Vtable の計算に使用されるフラグ。

count
Int32

返されたメモリに含まれる要素の数。

返品

ComWrappers.ComInterfaceEntry すべての COM インターフェイス エントリのメモリを含むポインター。

注釈

この関数から返されるすべてのメモリは、アンマネージ メモリまたは固定マネージド メモリであるか、 AllocateTypeAssociatedMemory(Type, Int32) API で割り当てられている必要があります。

インターフェイス エントリを作成できず、負の count または null が返され、0 以外の count が返された場合、 GetOrCreateComInterfaceForObject(Object, CreateComInterfaceFlags) の呼び出しは ArgumentExceptionをスローします。

適用対象