This topic has not yet been rated - Rate this topic

SPRepairableHealthAnalysisRule.Repair Method

SharePoint 2010

Repairs an error found by the Check() method.

Namespace:  Microsoft.SharePoint.Administration.Health
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public abstract SPHealthRepairStatus Repair()

Return Value

Type: Microsoft.SharePoint.Administration.Health.SPHealthRepairStatus
An enumeration value that describes the outcome of an attempt to repair an error.

Override this method in your derived class. Then write code to correct the condition that causes your implementation of the Check() method to return SPHealthCheckStatus.Failed.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ