GetVocabulary Method (HealthServiceConnection, String)

HealthVault
Retrieves a list of vocabulary items for the specified vocabulary.

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

public static Vocabulary GetVocabulary(
	HealthServiceConnection connection,
	string name
)

Parameters

connection
Type: Microsoft.Health..::..HealthServiceConnection
The connection to use for this operation. The connection must have application capability.
name
Type: System..::..String
The name of the vocabulary requested.

Return Value

The requested vocabulary and its items.

ExceptionCondition
System..::..ArgumentException The name parameter null or an empty string.
Microsoft.Health..::..HealthServiceException There is an error in the server request.
-Or-
One of the requested vocabularies is not found on the server.
-Or-
-Or-
There is an error loading the vocabulary.
Show: