Export (0) Print
Expand All
Expand Minimize

UpdateItems Method

HealthVault
Updates the specified health record items in one batch call to the service.

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

'Declaration
Public Shared Sub UpdateItems ( _
	connection As ApplicationConnection, _
	accessor As HealthRecordAccessor, _
	itemsToUpdate As IList(Of HealthRecordItem) _
)

Parameters

connection
Type: Microsoft.Health..::..ApplicationConnection
The connection to use to access the data.
accessor
Type: Microsoft.Health..::..HealthRecordAccessor
The record to use.
itemsToUpdate
Type: System.Collections.Generic..::..IList<(Of <(<'HealthRecordItem>)>)>
The health record items to be updated.

Only new items are updated with the appropriate unique identifier. All other sections must be updated manually.

This method accesses the HealthVault service across the network.

ExceptionCondition
System..::..ArgumentNullException The itemsToUpdate parameter is null.
System..::..ArgumentException The itemsToUpdate contains a null member or a HealthRecordItem instance that does not have an ID.
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 updated.
Show:
© 2014 Microsoft