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

HealthVault
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: 2.1.0.0 (1.15.1003.9505)

public static PersonInfo GetPersonAndRecordForAlternateId(
	ApplicationConnection connection,
	string alternateId
)

Parameters

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

This method accesses the HealthVault service across the network.

ExceptionCondition
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.
Show:
© 2015 Microsoft