Share via


IDiagnosticsDataservice.GetScope method

Get a particular scope for a give correlation id and scope id

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

Syntax

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

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

Parameters

Return value

Type: Microsoft.SharePoint.Diagnostics.SPMonitoredScopeData
The scope associated with this correlation id and scope id

Examples

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

See also

Reference

IDiagnosticsDataservice interface

IDiagnosticsDataservice members

Microsoft.SharePoint.Diagnostics namespace