Share via


IDiagnosticsDataservice.GetScopes method

Get all the scopes for a give correlation id.

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

Syntax

'Declaration
<WebGetAttribute(UriTemplate := "{CorrelationId}/Scopes", ResponseFormat := WebMessageFormat.Json)> _
<OperationContractAttribute> _
Function GetScopes ( _
    correlationId As String _
) As SPMonitoredScopeData()
'Usage
Dim instance As IDiagnosticsDataservice
Dim correlationId As String
Dim returnValue As SPMonitoredScopeData()

returnValue = instance.GetScopes(correlationId)
[WebGetAttribute(UriTemplate = "{CorrelationId}/Scopes", ResponseFormat = WebMessageFormat.Json)]
[OperationContractAttribute]
SPMonitoredScopeData[] GetScopes(
    string correlationId
)

Parameters

Return value

Type: []
The scopes having this correlation id. The scopes are organized in hierarchy

Examples

Request: https://server/_vti_bin/diagnosticsdata.svc/b0304019-28fa-4fc3-b8cf-e088aa4c003a/scopes

See also

Reference

IDiagnosticsDataservice interface

IDiagnosticsDataservice members

Microsoft.SharePoint.Diagnostics namespace