Compartilhar 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)
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

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