Share via


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.String

    The name of the custom diagnostic area.

See also

Reference

SPDiagnosticsArea class

SPDiagnosticsArea members

SPDiagnosticsArea overload

Microsoft.SharePoint.Administration namespace