Export (0) Print
Expand All

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

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

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

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

Parameters

connection
Type: Microsoft.Health..::..HealthServiceConnection
The connection to use for this operation. The connection must have application capability.
vocabularyKeys
Type: System.Collections.Generic..::..IList<(Of <(<'VocabularyKey>)>)>
A list of keys identifying the requested vocabularies.
cultureIsFixed
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.

ExceptionCondition
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.
-Or-
One of the requested vocabularies is not found on the server.
-Or-
One of the requested vocabularies does not contain representations for its items for the specified culture when cultureIsFixed is true.
-Or-
There is an error loading the vocabulary.
Show:
© 2014 Microsoft