Share via


SPDiagnosticsCategory.ResetToDefaults method

Resets the EventSeverity and TraceSeverity back to their default values.

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

Syntax

'Declaration
Public Function ResetToDefaults As Boolean
'Usage
Dim instance As SPDiagnosticsCategory
Dim returnValue As Boolean

returnValue = instance.ResetToDefaults()
public bool ResetToDefaults()

Return value

Type: System.Boolean
true if EventSeverity or TraceSeverity changed; otherwise, false.

See also

Reference

SPDiagnosticsCategory class

SPDiagnosticsCategory members

Microsoft.SharePoint.Administration namespace