ComWrappers.ComInterfaceDispatch.GetInstance<T> Yöntem

Tanım

Oluşturulan bir IntPtr Vtable'dan verilen değeri hedef türe dönüştürür.

public:
generic <typename T>
 where T : class static T GetInstance(System::Runtime::InteropServices::ComWrappers::ComInterfaceDispatch* dispatchPtr);
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ür Parametreleri

T

İstenen tür.

Parametreler

dispatchPtr
ComWrappers.ComInterfaceDispatch

Vtable işlev girişinin işaretçisi.

Döndürülenler

T

Dağıtılan işlev çağrısıyla ilişkili türün bir örneği.

Şunlara uygulanır