共用方式為


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

使用指定的參數初始化SPDiagnosticsArea類別的新執行個體。

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

Syntax

'宣告
Public Sub New ( _
    name As String, _
    messageId As UInteger, _
    areaId As UInteger, _
    hidden As Boolean, _
    categories As IEnumerable(Of SPDiagnosticsCategory) _
)
'用途
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
)

參數

  • messageId
    Type: System.UInt32

    如果localizedNamea null reference (Nothing in Visual Basic)和SPDiagnosticsServiceBase包含資源 DLL,會使用此訊息識別碼。

  • areaId
    Type: System.UInt32

    代表區域的唯一數字識別碼。SPDiagnosticsService ,而無法保留設定,請以內部使用的值。如果您使用零,然後DiagnosticeServiceBase會指派唯一識別碼。

  • hidden
    Type: System.Boolean

    trueSPDiagnosticsArea物件隱藏的 [設定診斷記錄] 頁面上的管理中心網站的 ; 如果否則,請false。

請參閱

參照

SPDiagnosticsArea class

SPDiagnosticsArea members

SPDiagnosticsArea overload

Microsoft.SharePoint.Administration namespace