SPDiagnosticsCategory-Konstruktor (String, TraceSeverity, EventSeverity)
Initialisiert den Namen der Kategorie und den Standardwert der Drosselung für TraceSeverity und EventSeverity mit den angegebenen Namen, TraceSeverity und EventSeverity -Objekten.
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
)
Parameter
name
Typ: System.StringDer Name der Kategorie.
traceDefault
Typ: Microsoft.SharePoint.Administration.TraceSeverityDer Standardwert des Throttle für TraceSeverity.
eventDefault
Typ: Microsoft.SharePoint.Administration.EventSeverityDer Standardwert des Throttle für EventSeverity.