AnonymousConnection Class

Represents a connection for an application to the HealthVault service for operations that require neither user authentication nor application identifier verification.

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

public class AnonymousConnection : HealthServiceConnection

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.

Use an anonymous connection to access HealthVault methods that require only a valid application identifier, such as GetServiceDefinition()()()().

For operations that require authentication, use the AuthenticatedConnection class and its derived classes. For operations that require more specific functionality, such as querying a vocabulary list, use the ApplicationConnection class and its derived classes.