Returns an array of Type objects representing a filtered list of interfaces implemented or inherited by the current Type.
[Visual Basic] Overridable Public Function FindInterfaces( _ ByVal filter As TypeFilter, _ ByVal filterCriteria As Object _ ) As Type () [C#] public virtual Type[] FindInterfaces( TypeFilter filter, object filterCriteria ); [C++] public: virtual Type* FindInterfaces( TypeFilter* filter, Object* filterCriteria ) []; [JScript] public function FindInterfaces( filter : TypeFilter, filterCriteria : Object ) : Type[];
An array of Type objects representing a filtered list of the interfaces implemented or inherited by the current Type.
-or-
An empty array of type Type, if no interfaces matching the filter are implemented or inherited by the current Type.
Exception Type | Condition |
---|---|
ArgumentNullException | filter is a null reference (in Visual Basic Nothing). |
TargetInvocationException | A static initializer is invoked and throws an exception. |
This method can be overridden by a derived class.
The FilterTypeName and FilterTypeNameIgnoreCase delegates supplied by the Module class may also be used, in lieu of the TypeFilter delegate.
All of the interfaces implemented by this class are considered during the search, whether declared by a super class or this class itself.
This method will search the super class hierarchy, returning all matching interfaces each class implements as well as all the matching interfaces each of those interfaces implements (that is, the transitive closure of the matching interfaces is returned). No duplicate interfaces are returned.