Share via


SPDiagnosticsService.LocalToFarm method

Returns an instance of the SPDiagnosticsService class that is associated with the specified SPFarm object.

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

Syntax

'Declaration
Public Shared Function LocalToFarm ( _
    farm As SPFarm _
) As SPDiagnosticsService
'Usage
Dim farm As SPFarm
Dim returnValue As SPDiagnosticsService

returnValue = SPDiagnosticsService.LocalToFarm(farm)
public static SPDiagnosticsService LocalToFarm(
    SPFarm farm
)

Parameters

Return value

Type: Microsoft.SharePoint.Administration.SPDiagnosticsService
Returns an instance of the SPDiagnosticsService class that is associated with the specified SPFarm object.

See also

Reference

SPDiagnosticsService class

SPDiagnosticsService members

Microsoft.SharePoint.Administration namespace