Share via


SPDiagnosticsArea constructor (String, UInt32, UInt32, Boolean, IEnumerable<SPDiagnosticsCategory>)

Initializes a new instance of the SPDiagnosticsArea class by using the specified parameters.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    messageId As UInteger, _
    areaId As UInteger, _
    hidden As Boolean, _
    categories As IEnumerable(Of SPDiagnosticsCategory) _
)
'Usage
Dim name As String
Dim messageId As UInteger
Dim areaId As UInteger
Dim hidden As Boolean
Dim categories As IEnumerable(Of SPDiagnosticsCategory)

Dim instance As New SPDiagnosticsArea(name, messageId, _
    areaId, hidden, categories)
public SPDiagnosticsArea(
    string name,
    uint messageId,
    uint areaId,
    bool hidden,
    IEnumerable<SPDiagnosticsCategory> categories
)

Parameters

  • name
    Type: System.String

    The name of the custom diagnostic area.

  • messageId
    Type: System.UInt32

    This message ID is used if the localizedName is a null reference (Nothing in Visual Basic) and if the SPDiagnosticsServiceBase contains a resource DLL.

  • areaId
    Type: System.UInt32

    The unique numeric ID representing the area. The SPDiagnosticsService uses the value internally to persist configuration. If you use zero, then the DiagnosticeServiceBase will assign a unique ID.

  • hidden
    Type: System.Boolean

    true if the SPDiagnosticsArea object is hidden from the Configure Diagnostic Logging page of the Central Administration site; otherwise, false.

See also

Reference

SPDiagnosticsArea class

SPDiagnosticsArea members

SPDiagnosticsArea overload

Microsoft.SharePoint.Administration namespace