Uređivanje

Dijeli putem


ComWrappers.ComputeVtables(Object, CreateComInterfaceFlags, Int32) Method

Definition

Computes the desired Vtable for obj, respecting the values of 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>

Parameters

obj
Object

Target of the returned Vtables.

flags
CreateComInterfaceFlags

Flags used to compute Vtables.

count
Int32

The number of elements contained in the returned memory.

Returns

ComWrappers.ComInterfaceEntry pointer containing memory for all COM interface entries.

Remarks

All memory returned from this function must either be unmanaged memory or pinned managed memory, or have been allocated with the AllocateTypeAssociatedMemory(Type, Int32) API.

If the interface entries cannot be created and a negative count or null and a non-zero count are returned, the call to GetOrCreateComInterfaceForObject(Object, CreateComInterfaceFlags) will throw a ArgumentException.

Applies to