MSDN Library

NewQuery Method (AuthenticatedConnection, HealthRecordSearcher)

Creates a new open query using the specified AuthenticatedConnection and definition.

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

public static OpenQuery NewQuery(
	AuthenticatedConnection connection,
	HealthRecordSearcher searcher


Type: Microsoft.Health..::..AuthenticatedConnection
An AuthenticatedConnection instance that creates the new open query.
Type: Microsoft.Health..::..HealthRecordSearcher
A HealthRecordSearcher instance that defines the open query.

Return Value

An OpenQuery instance that represents the newly created query.

The creation of an open query makes the data returned by that query public. The only obscurity to the data is that the query URL must be known to retrieve it.

System..::..ArgumentNullException The connection parameter is null.
System..::..ArgumentNullException The searcher parameter is null.
System..::..ArgumentException The searcher parameter contains no valid search filters.
Microsoft.Health..::..HealthServiceException An error occurred when HealthVault processed the request.
© 2016 Microsoft