SPDiagnosticsArea constructor (String, IEnumerable<SPDiagnosticsCategory>)
Initializes a new instance of the SPDiagnosticsArea class by using the specified parameters.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
categories As IEnumerable(Of SPDiagnosticsCategory) _
)
'Usage
Dim name As String
Dim categories As IEnumerable(Of SPDiagnosticsCategory)
Dim instance As New SPDiagnosticsArea(name, categories)
public SPDiagnosticsArea(
string name,
IEnumerable<SPDiagnosticsCategory> categories
)
Parameters
name
Type: System.StringThe name of the custom diagnostic area.
categories
Type: System.Collections.Generic.IEnumerable<SPDiagnosticsCategory>The collection of categories for this area.