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
)
參數
name
Type: System.String自訂的診斷區域名稱。
messageId
Type: System.UInt32如果localizedNamea null reference (Nothing in Visual Basic)和SPDiagnosticsServiceBase包含資源 DLL,會使用此訊息識別碼。
areaId
Type: System.UInt32代表區域的唯一數字識別碼。SPDiagnosticsService ,而無法保留設定,請以內部使用的值。如果您使用零,然後DiagnosticeServiceBase會指派唯一識別碼。
hidden
Type: System.BooleantrueSPDiagnosticsArea物件隱藏的 [設定診斷記錄] 頁面上的管理中心網站的 ; 如果否則,請false。
categories
Type: System.Collections.Generic.IEnumerable<SPDiagnosticsCategory>此區域的類別的集合。