RuntimeReflectionExtensions.GetRuntimeInterfaceMap(TypeInfo, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳指定類型與介面的介面映射。
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
參數
- typeInfo
- TypeInfo
要取得映射的類型。
- interfaceType
- Type
用來擷取映射的介面。
傳回
一個代表指定介面與類型的介面映射的物件。
例外狀況
interfaceType並非由 實作。typeInfo
-或者-
interfaceType 不指介面。
-或者-
typeInfo 或 interfaceType 是開放式通用型。
-或者-
interfaceType 是一個通用介面,而 typeInfo 是一個陣列類型。
typeInfo 代表一個通用型態參數。