GetCorrelationId Method

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


Type: System.Net.Http.HttpRequestMessage

The HTTP request.

Return Value

Type: System.Guid

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

Return to top
© 2016 Microsoft