IDiagnosticsDataservice.GetScopes 方法
获取为关联 id 的所有作用域。
命名空间: Microsoft.SharePoint.Diagnostics
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<OperationContractAttribute> _
<WebGetAttribute(UriTemplate := "{CorrelationId}/Scopes", ResponseFormat := WebMessageFormat.Json)> _
Function GetScopes ( _
correlationId As String _
) As SPMonitoredScopeData()
用法
Dim instance As IDiagnosticsDataservice
Dim correlationId As String
Dim returnValue As SPMonitoredScopeData()
returnValue = instance.GetScopes(correlationId)
[OperationContractAttribute]
[WebGetAttribute(UriTemplate = "{CorrelationId}/Scopes", ResponseFormat = WebMessageFormat.Json)]
SPMonitoredScopeData[] GetScopes(
string correlationId
)
参数
correlationId
类型:System.String相关性 id
返回值
类型:[]
无此相关性 id 范围。在层次结构中组织作用域
示例
请求: https://server/_vti_bin/diagnosticsdata.svc/b0304019-28fa-4fc3-b8cf-e088aa4c003a/scopes