_Type.GetInterfaceMap(Type) 方法

定義

為 COM 物件提供與版本無關的 GetInterfaceMap(Type) 方法之存取權。Provides COM objects with version-independent access to the GetInterfaceMap(Type) method.

public:
 System::Reflection::InterfaceMapping GetInterfaceMap(Type ^ interfaceType);
public System.Reflection.InterfaceMapping GetInterfaceMap (Type interfaceType);
abstract member GetInterfaceMap : Type -> System.Reflection.InterfaceMapping
Public Function GetInterfaceMap (interfaceType As Type) As InterfaceMapping

參數

interfaceType
Type

要擷取對應的介面的 TypeThe Type of the interface of which to retrieve a mapping.

傳回

InterfaceMapping

InterfaceMapping 物件,表示 interfaceType 的介面對應。An InterfaceMapping object representing the interface mapping for interfaceType.

備註

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetInterfaceMap 方法會傳回指定介面類別型的介面對應。The Type.GetInterfaceMap method returns an interface mapping for the specified interface type.

適用於