CreateFromXml Method

HealthVault
Creates an instance of a HealthRecordAccessor object using the specified XML.

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

public static HealthRecordAccessor CreateFromXml(
	ApplicationConnection connection,
	XPathNavigator navigator
)

Parameters

connection
Type: Microsoft.Health..::..ApplicationConnection
A connection for the current user.
navigator
Type: System.Xml.XPath..::..XPathNavigator
The XML containing the record information.

Return Value

A new instance of a HealthRecordAccessor object containing the record information.

ExceptionCondition
System..::..ArgumentNullException The connection or navigator parameter is null.
Show: