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

RemoveItems Method

Marks the specified health record item as deleted.

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

Public Shared Sub RemoveItems ( _
	connection As ApplicationConnection, _
	accessor As HealthRecordAccessor, _
	itemsToRemove As IList(Of HealthRecordItemKey) _


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 <(<'HealthRecordItemKey>)>)>
The unique item identifiers of the items to remove.

This method accesses the HealthVault service across the network.

Health record items are never completely deleted. They are marked as deleted and are ignored for most normal operations. Items can be undeleted by contacting customer service.

System..::..ArgumentException The itemsToRemove parameter is empty.
Microsoft.Health..::..HealthServiceException Errors removed the health record items from the server. 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 removed.
© 2015 Microsoft