GetVocabulary Method (VocabularyKey, Boolean)

Retrieves a list of vocabulary items for the specified vocabulary and culture.

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

public Vocabulary GetVocabulary(
	VocabularyKey vocabularyKey,
	bool cultureIsFixed


Type: Microsoft.Health..::..VocabularyKey
A key identifying the vocabulary requested.
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 vocabulary and its items, or empty strings.

System..::..ArgumentNullException The vocabularyKey is null.
Microsoft.Health..::..HealthServiceException There is an error in the server request.
The requested vocabulary is not found on the server.
The requested vocabulary does not contain representations for its items for the specified culture when cultureIsFixed is true.
There is an error loading the vocabulary.