AssociateAlternateId Method
TOC
Collapse the table of content
Expand the table of content

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)

'Declaration
Public Shared Sub AssociateAlternateId ( _
	connection As ApplicationConnection, _
	accessor As HealthRecordAccessor, _
	alternateId As String _
)

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:
© 2016 Microsoft