GetPersonInfo Method (String, Guid, HealthServiceInstance)

Gets the authenticated person's information using the specified authentication token, from the specified HealthVault web-service instance.

Namespace: Microsoft.Health.Web
Assembly: Microsoft.Health.Web (in Microsoft.Health.Web.dll) Version: (1.15.1003.9505)

public static PersonInfo GetPersonInfo(
	string authToken,
	Guid appId,
	HealthServiceInstance serviceInstance


Type: System..::..String
The authentication token for a user. This can be retrieved by extracting the WCToken query string parameter from the request after the user has been redirected to the HealthVault AUTH page. See RedirectToShellUrl(HttpContext, String) for more information.
Type: System..::..Guid
The unique identifier for the application.
Type: Microsoft.Health..::..HealthServiceInstance
The HealthVault web-service instance.

Return Value

The information about the logged in person.

Applications that work with more than one HealthVault instance should not call this method. Instead, call the overload which takes an HealthServiceInstance, specifying the HealthVault instance where the session auth token was created.