Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

NewItems Method

Creates new health record items associated with the record.

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

public static void NewItems(
	ApplicationConnection connection,
	HealthRecordAccessor accessor,
	IList<HealthRecordItem> items


Type: Microsoft.Health..::..ApplicationConnection
The connection to use to access the data.
Type: Microsoft.Health..::..HealthRecordAccessor
The record to use.
Type: System.Collections.Generic..::..IList<(Of <(<'HealthRecordItem>)>)>
The health record items from which to create new instances.

This method accesses the HealthVault service across the network.

Microsoft.Health..::..HealthServiceException The HealthVault service returned an error. The exception's Error property will contain the index of the item on which the failure occurred in the ErrorInfo property. If any failures occur, no items will have been created.
System..::..ArgumentNullException At least one HealthRecordItem in the supplied list was null.
© 2015 Microsoft