Export (0) Print
Expand All
Expand Minimize

AssociateAlternateId Method

HealthVault
Associates 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 AssociateAlternateId(
	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 already associated by this application, the ErrorCode property will be set to DuplicateAlternateId. If the number of alternate IDs associated with a record exceeds the limit, the ErrorCode property will be set to AlternateIdsLimitExceeded.
Show:
© 2014 Microsoft