Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.