GetInterface Method

TypeDelegator.GetInterface Method

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

Returns the specified interface implemented by the type wrapped by the current TypeDelegator.

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

public override Type GetInterface(
	string name,
	bool ignoreCase
)

Parameters

name
Type: System.String
The fully qualified name of the interface implemented by the current class.
ignoreCase
Type: System.Boolean
true if the case is to be ignored; otherwise, false.

Return Value

Type: System.Type
A Type object representing the interface implemented (directly or indirectly) by the current class with the fully qualified name matching the specified name. If no interface that matches name is found, null is returned.

ExceptionCondition
ArgumentNullException

The name parameter is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft