AuthenticatedConnection Class
Collapse the table of content
Expand the table of content

AuthenticatedConnection Class

Represents an authenticated interface to the HealthVault service. Most operations performed against the service require authentication.

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

public class AuthenticatedConnection : ApplicationConnection

You must connect to the HealthVault service to access its web methods. This class does not maintain an open connection to the service, but uses XML over HTTP to make requests and receive responses from the service. The connection only maintains the data necessary for the request.

An authenticated connection takes the user name and password, authenticates them against the HealthVault service, and then stores an authentication token which is then passed to the service on each subsequent request. An authenticated connection is required for accessing a person's health record.

For operations that do not require user or application authentication, use the AnonymousConnection class.
© 2016 Microsoft