IDynamicInterfaceCastable.GetInterfaceImplementation 메서드

정의

지정된 인터페이스 형식을 클래스의 메타데이터에서 찾을 수 없을 때 인터페이스를 디스패치하는 동안 호출됩니다.

public:
 RuntimeTypeHandle GetInterfaceImplementation(RuntimeTypeHandle interfaceType);
public RuntimeTypeHandle GetInterfaceImplementation (RuntimeTypeHandle interfaceType);
abstract member GetInterfaceImplementation : RuntimeTypeHandle -> RuntimeTypeHandle
Public Function GetInterfaceImplementation (interfaceType As RuntimeTypeHandle) As RuntimeTypeHandle

매개 변수

interfaceType
RuntimeTypeHandle

인터페이스 형식입니다.

반환

현재 개체에서 interfaceType에 대해 디스패치할 때 사용해야 하는 형식입니다.

예외

반환된 형식이 인터페이스 형식이 아니거나 DynamicInterfaceCastableImplementationAttribute로 표시되지 않았습니다.

설명

이 함수를 호출할 때 지정된 인터페이스에 대한 이 개체의 캐스트는 지침을 통해 castclass/isinst 이미 확인되어야 합니다. 반환된 형식은 인터페이스 형식이어야 하며 로 표시 DynamicInterfaceCastableImplementationAttribute되어야 합니다. 그렇지 않으면 이 InvalidOperationException throw됩니다.

적용 대상