CreateSearcher Method (Guid[])

Creates a new HealthRecordSearcher for a list of specific types.

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

public HealthRecordSearcher CreateSearcher(
	params Guid[] typeIds


Type: array<System..::..Guid>[]()[][]
A list of unique type ids to filter on.

Return Value

A HealthRecordSearcher that searches for items with specific type IDs within this record.

The method adds a filter to the HealthRecordSearcher that only returns items of the specified type IDs. That filter may be accessed through the returned searcher using searcher.Filters[0]. You can also call the HealthRecordSearcher constructor directly and pass in a reference to this HealthRecordAccessor.