Health​Service​Page Class

Definition

A base page for ASP.NET applications building against HealthVault.

[System.Security.SecurityCritical]
public class HealthServicePage : System.Web.UI.Page
Inheritance
HealthServicePage
Derived
Attributes
System.Security.SecurityCritical

Remarks

By deriving from this base page, ASP.NET applications can inherit much of the data management capabilities that are needed to implement a HealthVault application. The base page handles redirecting to the HealthVault Shell to authenticate the user, getting information about the records the user is authorized to use, and serializing and making available to other pages the person's information and self/selected record.

Constructors

Health​Service​Page()

Properties

Anonymous​Connection

Gets a HealthVault connection without an authentication token.

Application​Authentication​Credential

Gets a credential used to authenticate the web application to HealthVault.

Application​Connection

Gets a HealthVault connection authenticated at tier 1 for the configured default HealthVault web-service instance.

Application​Id

Gets or sets the unique application identifier.

Authenticated​Connection

Gets a HealthVault connection authenticated at tier 3.

Current​Page

Gets the current page as a HealthServicePage.

Dictionary​Connection

Gets a HealthVault connection without an authentication token.

Is​Logged​In

Gets whether a person is logged-in or not.

Is​Mra

Gets a value indicating whether the page is for multi-record application.

Is​Page​Ssl​Secure

Gets a value indicating whether a page wants to use SSL for security.

Log​On​Required

True if the page requires the user to be logged in to HealthVault.

Person​Info

Gets information about the logged-in person.

Methods

Construct​Shell​Target​Url(​String)

Constructs a URL to be redirected to via the HealthVault URL redirector.

Construct​Shell​Target​Url(​String, ​String)

Constructs a URL to be redirected to via the HealthVault URL redirector.

Construct​Shell​Target​Url(​String, ​String, ​String)

Constructs a URL to be redirected to via the HealthVault URL redirector.

Initialize​User​Data(​Boolean)

Initializes the user data for the page.

On​Init(​Event​Args)

Initializes the page to use SSL if necessary.

On​Pre​Load(​Event​Args)

Handles the PreLoad event for the page.

Redirect​To​Log​On()

Redirects the caller's browser to the logon page for authentication.

Redirect​To​Log​On(​Boolean)

Redirects the caller's browser to the logon page for authentication.

Redirect​To​Shell​Url(​String)

Redirects to the HealthVault Shell URL with the query string params appended.

Redirect​To​Shell​Url(​String, ​String)

Redirects to the HealthVault Shell URL with the queryString params appended.

Redirect​To​Shell​Url(​String, ​String, ​String)

Redirects to the HealthVault Shell URL with the queryString params appended.

Refresh​And​Persist()

Cleans the application's session of HealthVault information and then repopulates it.

Refresh​And​Persist(​String)

Cleans the application's session of HealthVault information and then repopulates it using the specified authentication token.

Set​Selected​Record(​Health​Record​Info)

Sets the selected health record for the application.

Sign​Out()

Signs the person out, cleans up the HealthVault session information, and redirects the user's browser to the signout action URL.

Sign​Out(​String)

Signs the person out, cleans up the HealthVault session information, and redirects the user's browser to the signout action URL with the specified querystring parameter if any.

Strip​From​Query​String(​String[])

remove one variable from query string