SPDiagnosticsCategory Constructor (String, TraceSeverity, EventSeverity, UInt32, UInt32)
Initializes the category name and the default throttle value for TraceSeverity and EventSeverity with the specified name, TraceSeverity object, EventSeverity object, message identifier, and category identifier.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
name As String, _
traceDefault As TraceSeverity, _
eventDefault As EventSeverity, _
messageId As UInteger, _
categoryId As UInteger _
)
'Usage
Dim name As String
Dim traceDefault As TraceSeverity
Dim eventDefault As EventSeverity
Dim messageId As UInteger
Dim categoryId As UInteger
Dim instance As New SPDiagnosticsCategory(name, traceDefault, _
eventDefault, messageId, categoryId)
public SPDiagnosticsCategory(
string name,
TraceSeverity traceDefault,
EventSeverity eventDefault,
uint messageId,
uint categoryId
)
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.
messageId
Type: System.UInt32The index in the message table associated with the localized name.
categoryId
Type: System.UInt32The numeric index for this item.