When implemented by a derived class, searches for the specified interface, specifying case-sensitivity.
[Visual Basic] Overloads MustOverride Public Function GetInterface( _ ByVal name As String, _ ByVal ignoreCase As Boolean _ ) As Type [C#] public abstract Type GetInterface( string name, bool ignoreCase ); [C++] public: virtual Type* GetInterface( String* name, bool ignoreCase ) = 0; [JScript] public abstract function GetInterface( name : String, ignoreCase : Boolean ) : Type;
-or-
false to perform a case-sensitive search for name.
A Type object representing the interface with the specified name, implemented or inherited by the current Type, if found; otherwise, a null reference (in Visual Basic Nothing).
Exception Type | Condition |
---|---|
ArgumentNullException | name is a null reference (Nothing). |
TargetInvocationException | A static initializer is invoked and throws an exception. |
Abstract. This method must be implemented by a derived class.
If typeName has 128 or more standard ASCII characters, a case-sensitive search will be performed, regardless of the value of ignoreCase. Arrays or COM types are not searched for unless they have already been loaded into the table of available classes.
Type Class | Type Members | System Namespace | Type.GetInterface Overload List