Share via


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

See also

Reference

SPDiagnosticsCategory class

SPDiagnosticsCategory members

SPDiagnosticsCategory overload

Microsoft.SharePoint.Administration namespace