SPDiagnosticsService.ResetAll Method
Resets reporting thresholds for all categories to their default levels.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
Public Sub ResetAll
Dim instance As SPDiagnosticsService
instance.ResetAll()
public void ResetAll()
Implements
IDiagnosticsManager.ResetAll()
Remarks
After calling this method, you must call the Update() method to save the changes in the registries of all servers in the server farm. The following example demonstrates the technique.
SPDiagnosticsService diagnostics = SPDiagnosticsService.Local;
diagnostics.ResetAll();
diagnostics.Update();
Dim diagnostics As SPDiagnosticsService = SPDiagnosticsService.Local
diagnostics.ResetAll()
diagnostics.Update()