GetAnonymousConnectionForInstance Method

HealthVault
Gets a HealthVault connection for the specified HealthVault web-service instance without an authentication token for either the user or the application.

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

public static AnonymousConnection GetAnonymousConnectionForInstance(
	HealthServiceInstance serviceInstance
)

Parameters

serviceInstance
Type: Microsoft.Health..::..HealthServiceInstance
The HealthVault web-service instance.

Return Value

A connection to HealthVault that does not contain user or application authentication information.

ExceptionCondition
System.Security..::..SecurityException If the application private key could not be found in the certificate store to sign requests.
Show: