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)

protected SPDiagnosticsServiceBase(
	string name,
	SPFarm parent


Type: System.String

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

Type: Microsoft.SharePoint.Administration.SPFarm

The farm on which to create the service.

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.