SPHealthAnalysisRuleAutomaticExecutionParameters.RepairAutomatically property
Gets or sets whether the rule should repair an error automatically as soon as it detects one.
Namespace: Microsoft.SharePoint.Administration.Health
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public Property RepairAutomatically As Boolean
Get
Set
'Usage
Dim instance As SPHealthAnalysisRuleAutomaticExecutionParameters
Dim value As Boolean
value = instance.RepairAutomatically
instance.RepairAutomatically = value
public bool RepairAutomatically { get; set; }
Type: System.Boolean
true if the Repair() method should be called automatically; otherwise, false.
You can use this property to specify a default action when an error is detected by a rule that is derived from the SPRepairableHealthAnalysisRule class. If you set the RepairAutomatically property to true, then SharePoint will call the rule’s Repair() method as soon as an error is found.
SPHealthAnalysisRuleAutomaticExecutionParameters class