GetRuntimeInterfaceMap Method

RuntimeReflectionExtensions.GetRuntimeInterfaceMap Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns an interface mapping for the specified type and the specified interface.

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

public static InterfaceMapping GetRuntimeInterfaceMap(
	this TypeInfo typeInfo,
	Type interfaceType
)

Parameters

typeInfo
Type: System.Reflection.TypeInfo
The type to retrieve a mapping for.
interfaceType
Type: System.Type
The interface to retrieve a mapping for.

Return Value

Type: System.Reflection.InterfaceMapping
An object that represents the interface mapping for the specified interface and type.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TypeInfo. When you use instance method syntax to call this method, omit the first parameter.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2016 Microsoft