Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MaxFullItemsReturnedPerRequest Property

HealthVault
Gets or sets the maximum number of full health record items returned per request to HealthVault.

Namespace: Microsoft.Health
Assembly: Microsoft.Health (in Microsoft.Health.dll) Version: 2.1.0.0 (1.15.1003.9505)
public int MaxFullItemsReturnedPerRequest { get; set; }
By default HealthVault will only return a certain number of "full" health record items for any query. It then returns the "keys" for the remaining items that matched the query which can then be queried for by ID. HealthRecordItemCollection automatically manages this paging for you. However, if you want further control over the count of full items retrieved on each request, MaxFullItemsReturnedPerRequest can be set to optimize for smaller sets of data. For example, let's say the data being retrieved is being displayed in a GridView and the results are shown 10 items per page. Rather than get the default number of full things, you can request 10 full items per request. Then only if the user clicks to the second page would you need to get the next 10 items.
ExceptionCondition
System..::..ArgumentOutOfRangeException The value is set to less than zero.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.