次の方法で共有


IDiagnosticsDataservice.GetDiagnosticsData method (String, String)

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

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

Syntax

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

returnValue = instance.GetDiagnosticsData(correlationId, _
    name)
[WebGetAttribute(UriTemplate = "{CorrelationId}/{Name}/Data", ResponseFormat = WebMessageFormat.Json)]
[OperationContractAttribute(Name = "GetDiagnosticsDataInCorrelation")]
SPDiagnosticsData[] GetDiagnosticsData(
    string correlationId,
    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/sprequest.count/data

See also

Reference

IDiagnosticsDataservice interface

IDiagnosticsDataservice members

GetDiagnosticsData overload

Microsoft.SharePoint.Diagnostics namespace