Export (0) Print Expand All This topic has not yet been rated -
Rate this topic  SPHealthAnalysisRule class  An abstract base
class that provides a definition for a SharePoint Health
Analyzer rule.   Namespace:
 Microsoft.SharePoint.Administration.Health Assembly:
 Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SharePointPermissionAttribute(SecurityAction.LinkDemand,
ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand,
ObjectModel = true)] public abstract class SPHealthAnalysisRule
A SharePoint Health Analyzer rule is a a concrete subclass that
inherits from either one of two abstract classes:
SPHealthAnalysisRule or SPRepairableHealthAnalysisRule. The only
difference between these two classes is that while both have a
Check() method to detect a problem, the
SPRepairableHealthAnalysisRule class also has a Repair() method
to correct the problem found by the Check method.  When you
create a subclass of the SPHealthAnalysisRule class, you must
override and implement the Sum