This documentation is archived and is not being maintained.

EnumBuilder.GetInterfaceMap Method

Returns an interface mapping for the interface requested.

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


The type of the interface for which the interface mapping is to be retrieved.

Return Value

The requested interface mapping.


Exception Type Condition
ArgumentException The type does not implement the interface.


As a workaround, to retrieve the interface mapping types of a finished type, retrieve the type using Type.GetType or Assembly.GetType and use reflection on the retrieved type.


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

EnumBuilder Class | EnumBuilder Members | System.Reflection.Emit Namespace