Creates list items and timer jobs for all rules in an assembly.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
- Type: System.Reflection.Assembly
The assembly to search for rules to be added.
The AddItems method examines the specified assembly and finds all public classes that are derived from the SPHealthAnalysisRule class (including classes derived from the SPRepairableHealthAnalysisRule class). For each class that it finds, the method creates a list item in the SharePoint Health Analyzer Rules list and a timer job to execute the rule defined by the class.