GetSingleItem Method

HealthVault
Gets a single health record item from the associated record by using the item identifier.

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

public HealthRecordItem GetSingleItem(
	Guid itemId,
	HealthRecordItemSections sections
)

Parameters

itemId
Type: System..::..Guid
The unique identifier for the health record item.
sections
Type: Microsoft.Health..::..HealthRecordItemSections
The data sections of the health record item that should be retrieved.

Return Value

An instance of a HealthRecordItem representing the health record item with the specified identifier.

This method accesses the HealthVault service across the network.

All filters are cleared and replaced with a single filter for the specified item.

ExceptionCondition
Microsoft.Health..::..HealthServiceException The server returned something other than a code of HealthServiceStatusCode.OK, or the result count did not equal one (1). -or- Filters is empty or contains invalid filters.
Show: