GetValidGroupMembership Method

Gets valid group memberships for a record.

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

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


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 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.

Microsoft.Health..::..HealthServiceException If an error occurs while contacting the HealthVault service.