SPDiagnosticsCategory constructor (String, TraceSeverity, EventSeverity)
Initializes the category name and the default throttle value for TraceSeverity and EventSeverity with the specified name, TraceSeverity and EventSeverity objects.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
traceDefault As TraceSeverity, _
eventDefault As EventSeverity _
)
'Usage
Dim name As String
Dim traceDefault As TraceSeverity
Dim eventDefault As EventSeverity
Dim instance As New SPDiagnosticsCategory(name, traceDefault, _
eventDefault)
public SPDiagnosticsCategory(
string name,
TraceSeverity traceDefault,
EventSeverity eventDefault
)
Parameters
name
Type: System.StringThe name of the category.
traceDefault
Type: Microsoft.SharePoint.Administration.TraceSeverityThe default throttle value for TraceSeverity.
eventDefault
Type: Microsoft.SharePoint.Administration.EventSeverityThe default throttle value for EventSeverity.