Type.GetInterfaceMap Method
Assembly: mscorlib (in mscorlib.dll)
[ComVisibleAttribute(true)] public: virtual InterfaceMapping GetInterfaceMap ( Type^ interfaceType )
/** @attribute ComVisibleAttribute(true) */ public InterfaceMapping GetInterfaceMap ( Type interfaceType )
ComVisibleAttribute(true) public function GetInterfaceMap ( interfaceType : Type ) : InterfaceMapping
Not applicable.
Parameters
- interfaceType
The Type of the interface of which to retrieve a mapping.
Return Value
An InterfaceMapping object representing the interface mapping for interfaceType.| Exception type | Condition |
|---|---|
| The interfaceType parameter does not refer to an interface. | |
| interfaceType is a null reference (Nothing in Visual Basic). | |
| The current Type represents a generic type parameter; that is, IsGenericParameter is true. | |
| The invoked method is not supported in the base class. Derived classes must provide an implementation. |
The interface map denotes how an interface is mapped into the actual methods on a class that implements that interface.
If the current Type represents a constructed generic type, type parameters are replaced by the appropriate type arguments in the elements of the InterfaceMapping returned by this method.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.