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



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 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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions