SPDiagnosticsServiceBase.GetLocal<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 GetLocal(Of T As {New, SPDiagnosticsServiceBase}) As T
'Usage
Dim returnValue As T

returnValue = SPDiagnosticsServiceBase.GetLocal()
protected static T GetLocal<T>()
where T : new(), SPDiagnosticsServiceBase

Type 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