Share via


IDiagnosticsDataservice.GetDiagnosticsData method (String, String, String)

Get the diagnostics data (name/value pairs) for given correlation id, scope id and name

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

Syntax

'Declaration
<WebGetAttribute(UriTemplate := "{CorrelationId}/{ScopeId}/{Name}/Data",  _
    ResponseFormat := WebMessageFormat.Json)> _
<OperationContractAttribute(Name := "GetDiagnosticsDataInScope")> _
Function GetDiagnosticsData ( _
    correlationId As String, _
    scopeId As String, _
    name As String _
) As SPDiagnosticsData()
'Usage
Dim instance As IDiagnosticsDataservice
Dim correlationId As String
Dim scopeId As String
Dim name As String
Dim returnValue As SPDiagnosticsData()

returnValue = instance.GetDiagnosticsData(correlationId, _
    scopeId, name)
[WebGetAttribute(UriTemplate = "{CorrelationId}/{ScopeId}/{Name}/Data", 
    ResponseFormat = WebMessageFormat.Json)]
[OperationContractAttribute(Name = "GetDiagnosticsDataInScope")]
SPDiagnosticsData[] GetDiagnosticsData(
    string correlationId,
    string scopeId,
    string name
)

Parameters

Return value

Type: []
All diagnostics data associated with the correlation id and the name

Examples

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

See also

Reference

IDiagnosticsDataservice interface

IDiagnosticsDataservice members

GetDiagnosticsData overload

Microsoft.SharePoint.Diagnostics namespace