HttpRequestMessageExtensions.GetCorrelationId Method (HttpRequestMessage)


Retrieves the Guid which has been assigned as the correlation ID associated with the given request. The value will be created and set the first time this method is called.

Namespace:   System.Net.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)


public static Guid GetCorrelationId(
    this HttpRequestMessage request
static Guid GetCorrelationId(
    HttpRequestMessage^ request
static member GetCorrelationId : 
        request:HttpRequestMessage -> Guid
Public Shared Function GetCorrelationId (
    request As HttpRequestMessage
) As Guid


Return Value

Type: System.Guid

The Guid object that represents the correlation ID associated with the request.

See Also

HttpRequestMessageExtensions Class
System.Net.Http Namespace

Return to top