Export (0) Print
Expand All

NewQuery Method (AuthenticatedConnection, HealthRecordSearcher, String)

Creates a new open query using the specified AuthenticatedConnection, definition, and personal identification number (PIN).

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

public static OpenQuery NewQuery(
	AuthenticatedConnection connection,
	HealthRecordSearcher searcher,
	string pinCode
)

Parameters

connection
Type: Microsoft.Health..::..AuthenticatedConnection
An AuthenticatedConnection instance that creates the new open query.
searcher
Type: Microsoft.Health..::..HealthRecordSearcher
A HealthRecordSearcher instance that defines the open query.
pinCode
Type: System..::..String
The PIN that protects the query.

Return Value

An OpenQuery instance that represents the newly created query.

The creation of an open query makes public the data returned by that query. However, the query URL must be known to retrieve the data.

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