Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetPersonAndRecordForAlternateId Method
Collapse the table of content
Expand the table of content

GetPersonAndRecordForAlternateId Method

Gets the person and record IDs that were previosly associated with an alternate ID.

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

public static PersonInfo GetPersonAndRecordForAlternateId(
	ApplicationConnection connection,
	string alternateId


Type: Microsoft.Health..::..ApplicationConnection
The connection to use to access the data.
Type: System..::..String
The alternate ID.

This method accesses the HealthVault service across the network.

System..::..ArgumentNullException The connection, accessor, or alternateId parameters are null
System..::..ArgumentException The alternateId parameter is empty, all whitespace, or more than 255 characters in length.
Microsoft.Health..::..HealthServiceException The HealthVault service returned an error. If the alternate Id is not associated with a person and record id, the ErrorCode property will be set to AlternateIdNotFound.
© 2015 Microsoft