Person​Info Class

Definition

Provides information about a person's HealthVault account.

public class PersonInfo : Microsoft.Health.IMarshallable
Inheritance
PersonInfo
Implements

Constructors

Person​Info()

Constructs an new instance of the PersonInfo class for testing purposes.

Properties

Application​Connection

Gets a reference to the HealthVault connection instance that was used to create this PersonInfo.

Application​Settings

Gets or sets the application settings for the current application and person.

Application​Settings​Document

Gets or sets the underlying application settings document.

Authorized​Records

Gets or sets the authorized record for the person.

Connection

Gets a reference to the HealthVault service that created this PersonInfo or null if the connection used was an OfflineWebApplicationConnection.

Location

Gets the location of the user account.

Name

Gets or sets the person's name.

Person​Id

Gets or sets the HealthVault unique identifier for the person.

Preferred​Culture

Gets or sets the user's preferred culture.

Preferred​UI​Culture

Gets or sets the user's preferred UI culture.

Selected​Record

Gets or sets the record the person has chosen to use as the default record for the current application.

Methods

Create​From​Xml(​Application​Connection, ​XPath​Navigator)

Creates a new instance of the PersonInfo class using the specified XML.

Get​From​Alternate​Id(​Application​Connection, ​String)

Look up the person and record that were previously associated with this alternate id.

Get​Self​Record()

Gets the HealthRecordInfo for the first health record that has a relationship of Self with the person.

Get​Xml()

Gets the XML representation of the PersonInfo.

Marshal(​Xml​Writer)

Writes the person information into the specified writer as XML.

Set​Application​Settings(​IX​Path​Navigable)

Sets the application settings in the web service for this person.

Unmarshal(​Xml​Reader)

Populates the data of the class from the XML in the specified reader.

Events

Application​Settings​Changed

Occurs when SetApplicationSettings(IXPathNavigable) changes the application settings in HealthVault.

Selected​Record​Changed

Occurs when the SelectedRecord setter is called.