Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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)

[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 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.

NotSupportedException

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

ADD
Show:
© 2015 Microsoft