Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetHealthRecordItemTypeDefinition Method
Collapse the table of content
Expand the table of content

GetHealthRecordItemTypeDefinition Method

HealthVault
Gets the definitions for one or more health record item type definitions supported by HealthVault.

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

public:
static IDictionary<Guid, HealthRecordItemTypeDefinition^>^ GetHealthRecordItemTypeDefinition(
	IList<Guid>^ typeIds, 
	HealthRecordItemTypeSections sections, 
	IList<String^>^ imageTypes, 
	Nullable<DateTime> lastClientRefreshDate, 
	HealthServiceConnection^ connection
)

Parameters

typeIds
Type: System.Collections.Generic..::..IList<(Of <(<'Guid>)>)>
A collection of health item type IDs whose details are being requested. Null indicates that all health item types should be returned.
sections
Type: Microsoft.Health..::..HealthRecordItemTypeSections
A collection of HealthRecordItemTypeSections enumeration values that indicate the type of details to be returned for the specified health item records(s).
imageTypes
Type: System.Collections.Generic..::..IList<(Of <(<'String>)>)>
A collection of strings that identify which health item record images should be retrieved. This requests an image of the specified mime type should be returned. For example, to request a GIF image, "image/gif" should be specified. For icons, "image/vnd.microsoft.icon" should be specified. Note, not all health item records will have all image types and some may not have any images at all. If '*' is specified, all image types will be returned.
lastClientRefreshDate
Type: System..::..Nullable<(Of <(<'DateTime>)>)>
A DateTime instance that specifies the time of the last refresh made by the client.
connection
Type: Microsoft.Health..::..HealthServiceConnection
A connection to the HealthVault service.

Return Value

The type definitions for the specified types, or empty if the typeIds parameter does not represent a known unique type identifier.

This method calls the HealthVault service if the types are not already in the client-side cache.

ExceptionCondition
System..::..ArgumentException If typeIds is null and empty, or typeIds is null and member in typeIds is Empty.
System..::..ArgumentNullException If connection parameter is null.
Show:
© 2015 Microsoft