SPHealthRulesList.GetItem Method

Returns the list item for the specified rule from the Health Rules list if an item for the rule exists.

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

public SPListItem GetItem(
	SPHealthAnalysisRule rule
)

Parameters

rule
Type: Microsoft.SharePoint.Administration.Health.SPHealthAnalysisRule

An instance of SharePoint Health Analyzer rule defined in a class that is derived from the SPHealthAnalysisRule class (including the SPRepairableHealthAnalysisRule class).

Return Value

Type: Microsoft.SharePoint.SPListItem
A list item for the instance of the rule or a null reference (Nothing in Visual Basic) if an item for the rule does not exist.
Show: