ComWrappers.ComInterfaceDispatch.GetInstance<T> 메서드

정의

생성된 Vtable에서 IntPtr이 지정된 경우 이를 대상 유형으로 변환합니다.

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

원하는 형식입니다.

매개 변수

dispatchPtr
ComWrappers.ComInterfaceDispatch

Vtable 함수 항목에 대한 포인터입니다.

반환

T

디스패치된 함수 호출과 관련된 형식의 인스턴스입니다.

적용 대상