'Declaration Public Shared Function GetInterface( _ ByVal type As Type, _ ByVal interfaceName As String, _ ByVal ignoreCase As Boolean _ ) As Type
public static Type GetInterface( Type type, string interfaceName, bool ignoreCase )
Parameters
- type
- Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.
- interfaceName
- The string containing the name of the interface to get. For generic interfaces, this is the mangled name.
- ignoreCase
- true to ignore the case of that part of name that specifies the simple interface name (the part that specifies the namespace must be correctly cased). -or- false to perform a case-sensitive search for all parts of name.
Return Value
An object representing the interface with the specified name, implemented or inherited by the current System.Type, if found; otherwise, null.