Export (0) Print
Expand All

HealthRecordInfo Constructor

HealthVault
Creates a new instance of the HealthRecordInfo class, providing a new view of a personal health record.

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

public HealthRecordInfo(
	ApplicationConnection connection,
	Guid id
)

Parameters

connection
Type: Microsoft.Health..::..ApplicationConnection
An instance of a ApplicationConnection to which the record operations are directed.
id
Type: System..::..Guid
The unique identifier for the record.

With this constructor, none of the data held in the properties is valid except the Id property. The ID is not validated with the service and the data is not retrieved until Refresh()()()() is called. However, any of the methods can be called without Update being called.

ExceptionCondition
System..::..ArgumentNullException The connection parameter is null.
System..::..ArgumentException The id parameter is Guid.Empty.
Show:
© 2014 Microsoft