RuntimeReflectionExtensions.GetRuntimeInterfaceMap(TypeInfo, Type) Yöntem

Tanım

Belirtilen tür ve belirtilen arabirim için bir arabirim eşlemesi döndürür.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::InterfaceMapping GetRuntimeInterfaceMap(System::Reflection::TypeInfo ^ typeInfo, Type ^ interfaceType);
public static System.Reflection.InterfaceMapping GetRuntimeInterfaceMap(this System.Reflection.TypeInfo typeInfo, Type interfaceType);
static member GetRuntimeInterfaceMap : System.Reflection.TypeInfo * Type -> System.Reflection.InterfaceMapping
<Extension()>
Public Function GetRuntimeInterfaceMap (typeInfo As TypeInfo, interfaceType As Type) As InterfaceMapping

Parametreler

typeInfo
TypeInfo

Eşleme alınacak tür.

interfaceType
Type

Eşlemesi alınacak arabirim.

Döndürülenler

Belirtilen arabirim ve tür için arabirim eşlemesini temsil eden bir nesne.

Özel durumlar

typeInfo, null'e eşittir.

-veya-

interfaceType, null'e eşittir.

interfaceType tarafından typeInfouygulanmaz.

-veya-

interfaceType bir arabirime başvurmaz.

-veya-

typeInfo veya interfaceType açık bir genel türdür.

-veya-

interfaceType genel bir arabirimdir ve typeInfo bir dizi türüdür.

typeInfo genel tür parametresini temsil eder.

typeInfo yöntemi henüz çağrılmamış bir TypeBuilder örnektir CreateType() .

-veya-

Çağrılan yöntem temel sınıfta desteklenmez. Türetilmiş sınıfların bir uygulama sağlaması gerekir.

Şunlara uygulanır

Ayrıca bkz.