Share via


SPDiagnosticsServiceBase constructor (String, SPFarm)

Initializes a new instance of the SPDiagnosticsServiceBase class by using the specified parameters.

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

Syntax

'Declaration
Protected Sub New ( _
    name As String, _
    parent As SPFarm _
)
'Usage
Dim name As String
Dim parent As SPFarm

Dim instance As New SPDiagnosticsServiceBase(name, parent)
protected SPDiagnosticsServiceBase(
    string name,
    SPFarm parent
)

Parameters

  • name
    Type: System.String

    The name of the new diagnostic service. This parameter must be String.Empty.

Remarks

It is not recommended to directly call this constructor. Instead, you should implement a local property on the derived class that in turn calls the GetLocal method.

See also

Reference

SPDiagnosticsServiceBase class

SPDiagnosticsServiceBase members

SPDiagnosticsServiceBase overload

Microsoft.SharePoint.Administration namespace