Condividi tramite


IDiagnosticsDataservice.GetMyCorrelationId method

Get the correlation id set for the current user and address. The correlation id is set via SetMyCorrelationId. If there is a correlation id set, all requests from the current user and machine will use the correlation id.

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

Syntax

'Declaration
<OperationContractAttribute> _
<WebInvokeAttribute(UriTemplate := "My/CorrelationId", Method := "GET",  _
    RequestFormat := WebMessageFormat.Json, ResponseFormat := WebMessageFormat.Json)> _
Function GetMyCorrelationId As Guid
'Usage
Dim instance As IDiagnosticsDataservice
Dim returnValue As Guid

returnValue = instance.GetMyCorrelationId()
[OperationContractAttribute]
[WebInvokeAttribute(UriTemplate = "My/CorrelationId", Method = "GET", 
    RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
Guid GetMyCorrelationId()

Return value

Type: System.Guid

Remarks

This is reserved for internal test purpose only

See also

Reference

IDiagnosticsDataservice interface

IDiagnosticsDataservice members

Microsoft.SharePoint.Diagnostics namespace