SPDiagnosticsServiceBase.GetLocal<T> 方法
返回从SPDiagnosticsServiceBase所描述的T参数派生的类的一个实例。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
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
类型参数
- T
必须将一个类从派生SPDiagnosticsServiceBase。
返回值
类型:T
返回从SPDiagnosticsServiceBase所描述的T参数派生的类的一个实例。