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
要擷取其對應的介面。
傳回
物件,表示所指定介面和型別的介面對應。
例外狀況
typeInfo
未實作 interfaceType
。
-或-
interfaceType
未參考介面。
-或-
typeInfo
或 interfaceType
是開放式泛型型別。
-或-
interfaceType
是泛型介面,而 typeInfo
是陣列類型。
typeInfo
表示泛型型別參數。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應