HealthServiceRequest.GetLastResponseId HealthServiceRequest.GetLastResponseId HealthServiceRequest.GetLastResponseId Method


Gets the last response id that was returned by the HealthVault platform. The response id is found in the response headers and is set when a request finishes executing.

For web applications, the response id is stored in the HttpContext items to be shared across the web request.

For non web applications, the response id is stored in thread local storage so the last response in the current thread will be returned.

If an error occurs / exception thrown, the caller can call GetLastResponseId to get that response id which can be used to look up error information in the HealthVault logs.

public static Guid GetLastResponseId ();
static member GetLastResponseId : unit -> Guid
Public Shared Function GetLastResponseId () As Guid


Applies to