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şlemesi 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 değeridir.

-veya-

interfaceType, null değeridir.

interfaceType tarafından typeInfouygulanmadı.

-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ılmayan bir TypeBuilder örnektir CreateType() .

-veya-

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

Şunlara uygulanır

Ayrıca bkz.