StartingPersonId Property

Gets or sets the person id that determines the starting point for the PersonInfo object iterator.

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

public Guid StartingPersonId { get; set; }

The PersonInfo iterator returned by GetAuthorizedPeople(GetAuthorizedPeopleSettings) will begin with the first authorized person after the person whose ID is specified by StartingPersonId.

To begin with the first available authorized person, set this value to Empty. The default value is Empty.

In case of a HealthServiceException while iterating through the results, the last successfully retrieved person id can be specified for this value and and used to retrieve a new iterator with GetAuthorizedPeople(GetAuthorizedPeopleSettings). The new iterator will begin with the authorized person that follows the last successfully retrieved PersonInfo.