Export (0) Print
Expand All

GetVocabulary Method (HealthServiceConnection, IList(VocabularyKey), Boolean)

Retrieves lists of vocabulary items for the specified vocabularies and culture.

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

public static ReadOnlyCollection<Vocabulary> GetVocabulary(
	HealthServiceConnection connection,
	IList<VocabularyKey> vocabularyKeys,
	bool cultureIsFixed


Type: Microsoft.Health..::..HealthServiceConnection
The connection to use for this operation. The connection must have application capability.
Type: System.Collections.Generic..::..IList<(Of <(<'VocabularyKey>)>)>
A list of keys identifying the requested vocabularies.
Type: System..::..Boolean
HealthVault looks for the vocabulary items for the culture info specified using Culture. If cultureIsFixed is set to false and if items are not found for the specified culture, items for the default fallback culture are returned. If cultureIsFixed is set to true, fallback will not occur, and if items are not found for the specified culture, empty strings are returned.

Return Value

The specified vocabularies and their items, or empty strings.

System..::..ArgumentException The vocabularyKeys list is empty.
System..::..ArgumentNullException The vocabularyKeys list is null or contains a null entry.
Microsoft.Health..::..HealthServiceException There is an error in the server request.
One of the requested vocabularies is not found on the server.
One of the requested vocabularies does not contain representations for its items for the specified culture when cultureIsFixed is true.
There is an error loading the vocabulary.
© 2014 Microsoft