Export (0) Print
Expand All
Expand Minimize

QueryRecordPermissions Method

Gets the permissions which the authenticated person has when using the calling application for the specified item types in this health record as well as the other permission settings such as IsMeaningfulUseTrackingEnabled.

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

Public Shared Function QueryRecordPermissions ( _
	connection As ApplicationConnection, _
	accessor As HealthRecordAccessor, _
	healthRecordItemTypeIds As IList(Of Guid) _
) As HealthRecordPermissions


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 uniqueidentifiers to identify the health record item types, for which the permissions are being queried.

Return Value

A HealthRecordPermissions object which contains a collection of HealthRecordItemTypePermission objects and other permission settings.

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.

System..::..ArgumentNullException If healthRecordItemTypeIds is null.
Microsoft.Health..::..HealthServiceException There is an error in the server request.
© 2014 Microsoft