Returns an array of classes accepted by the given filter and filter criteria.
[Visual Basic] Overridable Public Function FindTypes( _ ByVal filter As TypeFilter, _ ByVal filterCriteria As Object _ ) As Type () [C#] public virtual Type[] FindTypes( TypeFilter filter, object filterCriteria ); [C++] public: virtual Type* FindTypes( TypeFilter* filter, Object* filterCriteria ) []; [JScript] public function FindTypes( filter : TypeFilter, filterCriteria : Object ) : Type[];
Returns an array of classes that were accepted by the filter.
Exception Type | Condition |
---|---|
ReflectionTypeLoadException | if any of the classes in a module are not able to be loaded. This is a special class load exception. It contains the array of classes (Types property) that were defined in the module and were loaded. This array may contain some null values. There is also another array of exceptions (LoaderExceptions property). This array represents the exceptions that were thrown by the class loader. The holes in the class array line up with the exceptions. |
The delegate given by filter is called for each class in the module, passing along the Type object representing the class as well as the given filterCriteria. If filter returns true the class will be included in the returned array. If filter is null then all classes are returned and the filterCriteria will be ignored.