SPHealthRulesList.DeleteItems Method

Deletes list items and timer jobs for all rules in an assembly.

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

public IDictionary<Type, Exception> DeleteItems(
	Assembly ruleAssembly
)

Parameters

ruleAssembly
Type: System.Reflection.Assembly

The assembly to search for rules to be removed.

Return Value

Type: System.Collections.Generic.IDictionary<Type, Exception>
A list of types that could not be deleted and the exceptions that were thrown when the method tried to delete them.
Show: