SPDiagnosticsItem 构造函数 (String, String, UInt32, UInt32, Boolean)

初始化属性的一组的SPDiagnosticsItem类的新实例。

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Sub New ( _
    name As String, _
    localizedName As String, _
    messageId As UInteger, _
    itemId As UInteger, _
    hidden As Boolean _
)
用法
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
)

参数

  • localizedName
    类型:System.String

    该项目的本地化的显示名称。如果此值为 null,则将使用外观messageId检索项。

  • messageId
    类型:System.UInt32

    一个整数值,它表示与此项对应的消息表中的索引。

  • hidden
    类型:System.Boolean

    如果为 true,在管理用户界面,则隐藏该项。

另请参阅

引用

SPDiagnosticsItem 类

SPDiagnosticsItem 成员

SPDiagnosticsItem 重载

Microsoft.SharePoint.Administration 命名空间