Share via


SPHealthReportsList.GetItem method

Returns the list item for the specified rule from the SharePoint Health Analyzer Reports list if an item for the rule exists.

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

Syntax

'Declaration
Public Function GetItem ( _
    rule As SPHealthAnalysisRule _
) As SPListItem
'Usage
Dim instance As SPHealthReportsList
Dim rule As SPHealthAnalysisRule
Dim returnValue As SPListItem

returnValue = instance.GetItem(rule)
public SPListItem GetItem(
    SPHealthAnalysisRule rule
)

Parameters

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.

See also

Reference

SPHealthReportsList class

SPHealthReportsList members

Microsoft.SharePoint.Administration.Health namespace

GetItem(SPHealthAnalysisRule)