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)
Available in Sandboxed Solutions: No
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
farm
Type: Microsoft.SharePoint.Administration.SPFarmThe farm object to use when retrieving the SPDiagnosticsService instance.
Return Value
Type: Microsoft.SharePoint.Administration.SPDiagnosticsService
Returns an instance of the SPDiagnosticsService class that is associated with the specified SPFarm object.