AnonymousConnection Property

Gets a HealthVault connection without an authentication token.

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

public static AnonymousConnection AnonymousConnection { get; }

Return Value

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

If a connection has already been made on the page, that connection is returned. If no connection has been made, a new connection is created a returned.

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