GetInterfaceMap Method
Collapse the table of content
Expand the table of content

Type.GetInterfaceMap Method

Returns an interface mapping for the specified interface type.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

public virtual InterfaceMapping GetInterfaceMap (
	Type interfaceType
/** @attribute ComVisibleAttribute(true) */ 
public InterfaceMapping GetInterfaceMap (
	Type interfaceType
public function GetInterfaceMap (
	interfaceType : Type
) : InterfaceMapping
Not applicable.



The Type of the interface of which to retrieve a mapping.

Return Value

An InterfaceMapping object representing the interface mapping for interfaceType.

Exception typeCondition


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.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

© 2015 Microsoft