ComWrappers.ComInterfaceDispatch.GetInstance<T> Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Given an IntPtr from a generated Vtable, converts it to the target type.
public:
generic <typename T>
where T : class static T GetInstance(System::Runtime::InteropServices::ComWrappers::ComInterfaceDispatch* dispatchPtr);
C#
public static T GetInstance<T>(System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* dispatchPtr) where T : class;
static member GetInstance : nativeptr<System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch> -> 'T (requires 'T : null)
- T
Desired type.
- dispatchPtr
- ComWrappers.ComInterfaceDispatch
Pointer to Vtable function entry.
T
An instance of the type associated with the dispatched function call.
Продукт | Версии |
---|---|
.NET | 5, 6, 7, 8, 9, 10 |
Работете съвместно с нас в GitHub
Източникът за това съдържание може да бъде намерен в GitHub, където можете също да създавате и преглеждате проблеми и да изтегляте искания. За повече информация вижте нашето ръководство за сътрудник.
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: