SearchVocabularyKeys Method

Searches the keys of vocabularies defined by the HealthVault service.

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

Public Shared Function SearchVocabularyKeys ( _
	connection As HealthServiceConnection, _
	searchValue As String, _
	searchType As VocabularySearchType, _
	maxResults As Nullable(Of Integer) _
) As ReadOnlyCollection(Of VocabularyKey)


Type: Microsoft.Health..::..HealthServiceConnection
The connection to use for this operation. The connection must have application capability.
Type: System..::..String
The search string to use.
Type: Microsoft.Health..::..VocabularySearchType
The type of search to perform.
Type: System..::..Nullable<(Of <(<'Int32>)>)>
The maximum number of results to return. If null, all matching results are returned, up to a maximum number defined by the service config value with key maxResultsPerVocabularyRetrieval.

Return Value

A ReadOnlyCollection of VocabularyKey with entries matching the search criteria.

This method does a text search of vocabulary names and descriptions.

System..::..ArgumentException If searchValue is null or empty or greater than 255 characters.
if searchType is not a known VocabularySearchType value.
when maxResults is defined but has a value less than 1.
Microsoft.Health..::..HealthServiceException There is an error in the server request.