AssociateAlternateId Method

Associates an alternate ID with this record.

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

public void AssociateAlternateId(
	string alternateId


Type: System..::..String
The alternate ID.

An alternate ID can be used to store an association between an ID that the application understands and the person and record IDs used by HealthVault. The alternate id string must be from 1-255 characters in length.

System..::..ArgumentNullException The alternateId parameter is 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. The exception's Error property will contain the index of the item on which the failure occurred in the ErrorInfo property. If any failures occur, no items will have been created.