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

HealthVault
Creates new health record items associated with the record.

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

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

Parameters

connection
Type: Microsoft.Health..::..ApplicationConnection
The connection to use to access the data.
accessor
Type: Microsoft.Health..::..HealthRecordAccessor
The record to use.
items
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.

ExceptionCondition
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.
Show:
© 2015 Microsoft