RemoveItems Method (IList(HealthRecordItem))

HealthVault
Marks the specified health record item as deleted.

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

public void RemoveItems(
	IList<HealthRecordItem> itemsToRemove
)

Parameters

itemsToRemove
Type: System.Collections.Generic..::..IList<(Of <(<'HealthRecordItem>)>)>
A list of the health record 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.

ExceptionCondition
System..::..ArgumentException The itemsToRemove parameter is null or 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.
Show: