Share via


SPDiagnosticsItem constructor (String, String, UInt32, UInt32, Boolean)

Initializes a new instance of the SPDiagnosticsItem class with a set of properties.

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

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    localizedName As String, _
    messageId As UInteger, _
    itemId As UInteger, _
    hidden As Boolean _
)
'Usage
Dim name As String
Dim localizedName As String
Dim messageId As UInteger
Dim itemId As UInteger
Dim hidden As Boolean

Dim instance As New SPDiagnosticsItem(name, localizedName, _
    messageId, itemId, hidden)
public SPDiagnosticsItem(
    string name,
    string localizedName,
    uint messageId,
    uint itemId,
    bool hidden
)

Parameters

  • localizedName
    Type: System.String

    The localized display name of this item. If this value is null, the look messageId will be used to retrieve the item.

  • messageId
    Type: System.UInt32

    An integer value representing the index in the message table corresponding to this item.

  • hidden
    Type: System.Boolean

    If true, the item is hidden from the administrative user interface.

See also

Reference

SPDiagnosticsItem class

SPDiagnosticsItem members

SPDiagnosticsItem overload

Microsoft.SharePoint.Administration namespace