Export (0) Print
Expand All
Expand Minimize

QueryPermissionsByTypes Method

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

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

public static IDictionary<Guid, HealthRecordItemTypePermission> QueryPermissionsByTypes(
	ApplicationConnection connection,
	HealthRecordAccessor accessor,
	IList<Guid> healthRecordItemTypeIds


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

Return Value

Returns a dictionary of HealthRecordItemTypePermission with health record item types as the keys.

If the list of health record item types is empty, an empty dictionary is returned. If for a health record item type, the person has neither online access nor offline access permissions, null will be returned for that type in the dictionary.

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