Export (0) Print
Expand All
Expand Minimize

GetValidGroupMembership Method

HealthVault
Gets valid group memberships for a record.

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

'Declaration
Public Shared Function GetValidGroupMembership ( _
	connection As ApplicationConnection, _
	accessor As HealthRecordAccessor, _
	applicationIds As IList(Of Guid) _
) As Collection(Of HealthRecordItem)

Parameters

connection
Type: Microsoft.Health..::..ApplicationConnection
The connection to use to access the data.
accessor
Type: Microsoft.Health..::..HealthRecordAccessor
The record to use.
applicationIds
Type: System.Collections.Generic..::..IList<(Of <(<'Guid>)>)>
A collection of unique application identifiers for which to search for group memberships. For a null or empty application identifier list, return all valid group memberships for the record. Otherwise, return only those group memberships last updated by one of the supplied application identifiers.

Return Value

A List of HealthRecordItems representing the valid group memberships.

Group membership thing types allow an application to signify that the record belongs to an application defined group. A record in the group may be eligible for special programs offered by other applications, for example. Applications then need a away to query for valid group memberships.
Valid group memberships are those memberships which are not expired, and whose last updating application is authorized by the the last updating person to read and delete the membership.

ExceptionCondition
Microsoft.Health..::..HealthServiceException If an error occurs while contacting the HealthVault service.
Show:
© 2014 Microsoft