EventSeverity和TraceSeverity将重置为它们的默认值。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function ResetToDefaults As Boolean
用法
Dim instance As SPDiagnosticsCategory
Dim returnValue As Boolean
returnValue = instance.ResetToDefaults()
public bool ResetToDefaults()
返回值
类型:System.Boolean
true如果没有改变EventSeverity或TraceSeverity 。否则为false。