FlexReport for WinForms | ComponentOne
C1.Win.C1Document.4.8 Assembly / C1.Win.C1Document Namespace / Utils Class / GetInterface Method
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.
The string containing the name of the interface to get. For generic interfaces, this is the mangled name.
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.

In This Topic
    GetInterface Method (Utils)
    In This Topic
    Searches for the specified interface, specifying whether to do a case-insensitive search for the interface name.
    Syntax
    '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.
    See Also