SPDiagnosticsArea constructor (String, 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, _
localizedName As String, _
messageId As UInteger, _
areaId As UInteger, _
hidden As Boolean, _
categories As IEnumerable(Of SPDiagnosticsCategory) _
)
'用途
Dim name As String
Dim localizedName 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, localizedName, _
messageId, areaId, hidden, categories)
public SPDiagnosticsArea(
string name,
string localizedName,
uint messageId,
uint areaId,
bool hidden,
IEnumerable<SPDiagnosticsCategory> categories
)
參數
name
Type: System.String自訂的診斷區域名稱。
localizedName
Type: System.String自訂的診斷區域或a null reference (Nothing in Visual Basic)本地化的名稱。如果值為a null reference (Nothing in Visual Basic), SPDiagnosticsServiceBase會嘗試尋找從 DLL 中做為郵件索引中的資源 DLL 使用messageIdSPDiagnosticsServiceBase所指定之資源的本地化的名稱。
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>
備註
此區域的類別的集合。