EnumBuilder.GetInterfaceMap(Type) Metoda

Definicja

Zwraca mapowanie interfejsu żądanego interfejsu.

public:
 override System::Reflection::InterfaceMapping GetInterfaceMap(Type ^ interfaceType);
public override System.Reflection.InterfaceMapping GetInterfaceMap (Type interfaceType);
[System.Runtime.InteropServices.ComVisible(true)]
public override System.Reflection.InterfaceMapping GetInterfaceMap (Type interfaceType);
override this.GetInterfaceMap : Type -> System.Reflection.InterfaceMapping
[<System.Runtime.InteropServices.ComVisible(true)>]
override this.GetInterfaceMap : Type -> System.Reflection.InterfaceMapping
Public Overrides Function GetInterfaceMap (interfaceType As Type) As InterfaceMapping

Parametry

interfaceType
Type

Typ interfejsu, dla którego ma zostać pobrane mapowanie interfejsu.

Zwraca

Żądane mapowanie interfejsu.

Atrybuty

Wyjątki

Typ nie implementuje interfejsu.

Uwagi

Aby obejść ten problem, aby pobrać typy mapowań interfejsu typu gotowego, pobierz typ przy użyciu Type.GetType lub Assembly.GetType użyj odbicia dla pobranego typu.

Dotyczy