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 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
- T
Must be a class derived from SPDiagnosticsServiceBase.
Parameters
farm
Type: Microsoft.SharePoint.Administration.SPFarmThe farm from which to get the instance of the class derived from SPDiagnosticsServiceBase.
Return value
Type: T
Returns an instance of the class derived from SPDiagnosticsServiceBase described by the T parameter.
See also
Reference
SPDiagnosticsServiceBase class