Export (0) Print
Expand All
Expand Minimize

Type.GetInterfaceMap Method

Returns an interface mapping for the specified interface type.

Namespace: System
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

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 typeCondition

ArgumentException

The interfaceType parameter does not refer to an interface.

ArgumentNullException

interfaceType is a null reference (Nothing in Visual Basic).

InvalidOperationException

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

ADD
Show:
© 2014 Microsoft