This documentation is archived and is not being maintained.

Type.GetInterfaceMap Method

Returns an interface mapping for the specified interface type.

[Visual Basic]
Public Overridable Function GetInterfaceMap( _
   ByVal interfaceType As Type _
) As InterfaceMapping
public virtual InterfaceMapping GetInterfaceMap(
 Type interfaceType
public: virtual InterfaceMapping GetInterfaceMap(
 Type* interfaceType
public function GetInterfaceMap(
   interfaceType : Type
) : InterfaceMapping;


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
ArgumentException The interfaceType parameter does not refer to an interface.
ArgumentNullException interfaceType is a null reference (Nothing in Visual Basic).


The interface map denotes how an interface is mapped into the actual methods on a class that implements that interface.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Type Class | Type Members | System Namespace | InterfaceMapping