共用方式為


SPDiagnosticsServiceBase.GetLocal<T> method

會傳回SPDiagnosticsServiceBaseT參數所描述的衍生類別的執行個體。

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

Syntax

'宣告
Protected Shared Function GetLocal(Of T As {New, SPDiagnosticsServiceBase}) As T
'用途
Dim returnValue As T

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

Type parameters

傳回值

Type: T
會傳回SPDiagnosticsServiceBaseT參數所描述的衍生類別的執行個體。

請參閱

參照

SPDiagnosticsServiceBase class

SPDiagnosticsServiceBase members

Microsoft.SharePoint.Administration namespace