AnonymousConnection Class

Definition

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

public class AnonymousConnection : Microsoft.Health.HealthServiceConnection
Inheritance
AnonymousConnection

Inherited Members

Microsoft.Health.HealthServiceConnection

Remarks

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.

Constructors

AnonymousConnection()

Creates an instance of the AnonymousConnection class for the configured application ID and the configured default HealthVault web-service instance.

AnonymousConnection(HealthServiceInstance)

Creates an instance of the AnonymousConnection class for the application for the specified HealthVault web-service instance.

AnonymousConnection(Guid, HealthServiceInstance)

Creates an instance of the AnonymousConnection class for the application having the specified globally unique identifier (GUID) and HealthVault web-service instance.

AnonymousConnection(Guid, String)

Creates an instance of the AnonymousConnection class for the application having the specified globally unique identifier (GUID) and string representing the HealthVault service uniform resource locator (URL).

AnonymousConnection(Guid, Uri)

Creates an instance of the AnonymousConnection class for the application having the specified globally unique identifier (GUID) and HealthVault service uniform resource locator (URL).