Compartilhar via


SPRepairableHealthAnalysisRule Class

An abstract base class that provides a definition for a SharePoint Health Analyzer rule that can repair an error automatically.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.Health.SPHealthAnalysisRule
    Microsoft.SharePoint.Administration.Health.SPRepairableHealthAnalysisRule

Namespace:  Microsoft.SharePoint.Administration.Health
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class SPRepairableHealthAnalysisRule _
    Inherits SPHealthAnalysisRule
'Usage
Dim instance As SPRepairableHealthAnalysisRule
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class SPRepairableHealthAnalysisRule : SPHealthAnalysisRule

Remarks

When you create a subclass of the SPRepairableHealthAnalysisRule class, you must override and implement the Summary, Explanation, Remedy, Category, and ErrorLevel properties as well as the Check() and Repair() methods. Implementation of the remaining members of the class is optional.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPRepairableHealthAnalysisRule Members

Microsoft.SharePoint.Administration.Health Namespace

SPHealthAnalysisRule

Other Resources

SharePoint Health Analyzer