Export (0) Print
Expand All
Expand Minimize

QueryPermissions Method

HealthVault
Gets the permissions which the authenticated person has when using the calling application for the specified item types in this health record.

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

public static Collection<HealthRecordItemTypePermission> QueryPermissions(
	ApplicationConnection connection,
	HealthRecordAccessor accessor,
	IList<Guid> healthRecordItemTypeIds
)

Parameters

connection
Type: Microsoft.Health..::..ApplicationConnection
The connection to use to access the data.
accessor
Type: Microsoft.Health..::..HealthRecordAccessor
The record to use.
healthRecordItemTypeIds
Type: System.Collections.Generic..::..IList<(Of <(<'Guid>)>)>
A collection of uniqueidentifiers to identify the health record item types, for which the permissions are being queried.

Return Value

A list of HealthRecordItemTypePermission objects which represent the permissions that the current authenticated person has for the HealthRecordItemTypes specified in the current health record when using the current application.

If the list of health record item types is empty, an empty list is returned. If for a health record item type, the person has neither online access nor offline access permissions, HealthRecordItemTypePermission object is not returned for that health record item type.

ExceptionCondition
System..::..ArgumentNullException If healthRecordItemTypeIds is null.
Microsoft.Health..::..HealthServiceException If there is an exception during executing the request to HealthVault.
Show:
© 2014 Microsoft