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)
Syntax
'Declaration
Public Function DeleteItems ( _
ruleAssembly As Assembly _
) As IDictionary(Of Type, Exception)
'Usage
Dim instance As SPHealthRulesList
Dim ruleAssembly As [Assembly]
Dim returnValue As IDictionary(Of Type, Exception)
returnValue = instance.DeleteItems(ruleAssembly)
public IDictionary<Type, Exception> DeleteItems(
Assembly ruleAssembly
)
Parameters
ruleAssembly
Type: System.Reflection.AssemblyThe 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.