Export (0) Print
Expand All

HealthRecordInfo Constructor

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: (1.15.1003.9505)

public HealthRecordInfo(
	ApplicationConnection connection,
	Guid id


Type: Microsoft.Health..::..ApplicationConnection
An instance of a ApplicationConnection to which the record operations are directed.
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.

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