DisassociateAlternateId Method

HealthVault
Disassociates an alternate ID with a record.

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

public void DisassociateAlternateId(
	string alternateId
)

Parameters

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

Removes the association between the alternate ID and the record/person.

ExceptionCondition
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. If the alternate Id is not associated with a person and record id, the ErrorCode property will be set to AlternateIdNotFound.
Show: