Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.