SPRepairableHealthAnalysisRule.Repair Method
Repairs an error found by the Check() method.
Namespace: Microsoft.SharePoint.Administration.Health
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public MustOverride Function Repair As SPHealthRepairStatus
'Usage
Dim instance As SPRepairableHealthAnalysisRule
Dim returnValue As SPHealthRepairStatus
returnValue = instance.Repair()
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.
Remarks
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.
See Also
Reference
SPRepairableHealthAnalysisRule Class