AnonymousConnection AnonymousConnection 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
type AnonymousConnection = class
    inherit HealthServiceConnection
Public Class AnonymousConnection
Inherits HealthServiceConnection
Inheritance
AnonymousConnectionAnonymousConnectionAnonymousConnection

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() AnonymousConnection() AnonymousConnection()

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

AnonymousConnection(Guid, HealthServiceInstance) AnonymousConnection(Guid, HealthServiceInstance) 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) AnonymousConnection(Guid, String) 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) AnonymousConnection(Guid, Uri) 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).

AnonymousConnection(HealthServiceInstance) AnonymousConnection(HealthServiceInstance) AnonymousConnection(HealthServiceInstance)

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

Properties

ApplicationId ApplicationId ApplicationId

Gets the calling application's ID.

(Inherited from HealthServiceConnection)
AuthenticationToken AuthenticationToken AuthenticationToken

Gets the authorization token to be used in all requests for this user.

(Inherited from HealthServiceConnection)
CancelAllRequests CancelAllRequests CancelAllRequests

Cancels any pending request to HealthVault that was initiated with this connection instance and prevents any new requests from being made.

(Inherited from HealthServiceConnection)
Credential Credential Credential

Gets or sets the application credential that is used to access HealthVault.

(Inherited from HealthServiceConnection)
Culture Culture Culture

Gets or sets the language to be sent to the server when making requests.

(Inherited from HealthServiceConnection)
RequestCompressionMethod RequestCompressionMethod RequestCompressionMethod

Gets or sets the request compression method for this connection.

(Inherited from HealthServiceConnection)
RequestTimeToLive RequestTimeToLive RequestTimeToLive

Gets or sets the request time-to-live in seconds.

(Inherited from HealthServiceConnection)
RequestTimeoutSeconds RequestTimeoutSeconds RequestTimeoutSeconds

Gets or sets the request timeout in seconds.

(Inherited from HealthServiceConnection)
RequestUrl RequestUrl RequestUrl

Gets the HealthVault web-service URL.

(Inherited from HealthServiceConnection)
ResponseCompressionMethods ResponseCompressionMethods ResponseCompressionMethods

Gets or sets the comma-separated response compression methods.

(Inherited from HealthServiceConnection)
ServiceInstance ServiceInstance ServiceInstance

Gets the HealthVault web-service instance associated with this connection.

(Inherited from HealthServiceConnection)
WebProxy WebProxy WebProxy

Gets or sets the proxy to use with this instance of HealthServiceConnection.

(Inherited from HealthServiceConnection)

Methods

CreateRequest(String, Int32) CreateRequest(String, Int32) CreateRequest(String, Int32)

Provides a wrapper around the XML request for the web service.

(Inherited from HealthServiceConnection)
GetServiceDefinition() GetServiceDefinition() GetServiceDefinition()

Gets information about the HealthVault service.

(Inherited from HealthServiceConnection)
GetServiceDefinition(DateTime) GetServiceDefinition(DateTime) GetServiceDefinition(DateTime)

Gets information about the HealthVault service only if it has been updated since the specified update time.

(Inherited from HealthServiceConnection)
GetServiceDefinition(ServiceInfoSections) GetServiceDefinition(ServiceInfoSections) GetServiceDefinition(ServiceInfoSections)

Gets information about the HealthVault service corresponding to the specified categories.

(Inherited from HealthServiceConnection)
GetServiceDefinition(ServiceInfoSections, DateTime) GetServiceDefinition(ServiceInfoSections, DateTime) GetServiceDefinition(ServiceInfoSections, DateTime)

Gets information about the HealthVault service corresponding to the specified categories if the requested information has been updated since the specified update time.

(Inherited from HealthServiceConnection)

Applies to