Share via


SPDiagnosticsServiceBase.GetLocalToFarm<T> method

Returns an instance of the class derived from SPDiagnosticsServiceBase described by the T parameter.

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

Syntax

'Declaration
Protected Shared Function GetLocalToFarm(Of T As {New, SPDiagnosticsServiceBase}) ( _
    farm As SPFarm _
) As T
'Usage
Dim farm As SPFarm
Dim returnValue As T

returnValue = SPDiagnosticsServiceBase.GetLocalToFarm(farm)
protected static T GetLocalToFarm<T>(
    SPFarm farm
)
where T : new(), SPDiagnosticsServiceBase

Type parameters

Parameters

Return value

Type: T
Returns an instance of the class derived from SPDiagnosticsServiceBase described by the T parameter.

See also

Reference

SPDiagnosticsServiceBase class

SPDiagnosticsServiceBase members

Microsoft.SharePoint.Administration namespace