HealthServicePage 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
Microsoft.Health.Web.HealthServiceActionPage
Attributes

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

HealthServicePage()

Properties

AnonymousConnection

Gets a HealthVault connection without an authentication token.

ApplicationAuthenticationCredential

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

ApplicationConnection

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

ApplicationId

Gets or sets the unique application identifier.

AuthenticatedConnection

Gets a HealthVault connection authenticated at tier 3.

CurrentPage

Gets the current page as a HealthServicePage.

DictionaryConnection

Gets a HealthVault connection without an authentication token.

IsLoggedIn

Gets whether a person is logged-in or not.

IsMra

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

IsPageSslSecure

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

LogOnRequired

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

PersonInfo

Gets information about the logged-in person.

Methods

ConstructShellTargetUrl(String)

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

ConstructShellTargetUrl(String, String)

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

ConstructShellTargetUrl(String, String, String)

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

InitializeUserData(Boolean)

Initializes the user data for the page.

OnInit(EventArgs)

Initializes the page to use SSL if necessary.

OnPreLoad(EventArgs)

Handles the PreLoad event for the page.

RedirectToLogOn()

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

RedirectToLogOn(Boolean)

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

RedirectToShellUrl(String)

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

RedirectToShellUrl(String, String)

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

RedirectToShellUrl(String, String, String)

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

RefreshAndPersist()

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

RefreshAndPersist(String)

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

SetSelectedRecord(HealthRecordInfo)

Sets the selected health record for the application.

SignOut()

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

SignOut(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.

StripFromQueryString(String[])

remove one variable from query string