Export (0) Print
Expand All

DisassociateAlternateId Method (ApplicationConnection, HealthRecordAccessor, String)

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 static void DisassociateAlternateId(
	ApplicationConnection connection,
	HealthRecordAccessor accessor,
	string alternateId
)

Parameters

connection
Type: Microsoft.Health..::..ApplicationConnection
The connection to use to access the data.
accessor
Type: Microsoft.Health..::..HealthRecordAccessor
The record to use.
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:
© 2014 Microsoft