Прочетете на английски Редактиране

Споделяне чрез


ComWrappers.ComInterfaceDispatch.GetInstance<T> Method

Definition

Given an IntPtr from a generated Vtable, converts it to the target type.

C#
public static T GetInstance<T>(System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* dispatchPtr) where T : class;

Type Parameters

T

Desired type.

Parameters

dispatchPtr
ComWrappers.ComInterfaceDispatch

Pointer to Vtable function entry.

Returns

T

An instance of the type associated with the dispatched function call.

Applies to

Продукт Версии
.NET 5, 6, 7, 8, 9, 10