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)

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

  • messageId
    Type: System.UInt32

    The index in the message table associated with the localized name.

  • categoryId
    Type: System.UInt32

    The numeric index for this item.

See also

Reference

SPDiagnosticsCategory class

SPDiagnosticsCategory members

SPDiagnosticsCategory overload

Microsoft.SharePoint.Administration namespace