Share via


IDiagnosticsDataservice.GetDiagnosticsData method (String, Boolean)

Get the diagnostics data (name/value pairs) for a given correlation id

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

Syntax

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

returnValue = instance.GetDiagnosticsData(correlationId, _
    executionplanAsLink)
[WebGetAttribute(UriTemplate = "{CorrelationId}/Data?executionplanAsLink={executionplanAsLink}", 
    ResponseFormat = WebMessageFormat.Json)]
[OperationContractAttribute]
SPDiagnosticsData[] GetDiagnosticsData(
    string correlationId,
    bool executionplanAsLink
)

Parameters

Return value

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

Examples

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

See also

Reference

IDiagnosticsDataservice interface

IDiagnosticsDataservice members

GetDiagnosticsData overload

Microsoft.SharePoint.Diagnostics namespace