SPDiagnosticsService.ResetAll, méthode (Microsoft.SharePoint.Administration)
Resets reporting thresholds for all categories to their default levels.
Espace de noms : Microsoft.SharePoint.Administration
Assembly : Microsoft.SharePoint (dans microsoft.sharepoint.dll)
Syntaxe
'Déclaration
Public Sub ResetAll
'Utilisation
Dim instance As SPDiagnosticsService
instance.ResetAll
public void ResetAll ()
Notes
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()
Voir aussi
Référence
SPDiagnosticsService, classe
Membres SPDiagnosticsService
Microsoft.SharePoint.Administration, espace de noms
SetAll