UpdateConnectPackageApplicationPatientId Method

HealthVault
Updates existing pending packages with a new application patient identifier.

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

public static void UpdateConnectPackageApplicationPatientId(
	OfflineWebApplicationConnection connection,
	string oldApplicationPatientId,
	string newApplicationPatientId
)

Parameters

connection
Type: Microsoft.Health.Web..::..OfflineWebApplicationConnection
The HealthVault connection to use for the operation.
oldApplicationPatientId
Type: System..::..String
The application patient identifier that was used to create the initial package.
newApplicationPatientId
Type: System..::..String
The new application patient identifier.

ExceptionCondition
System..::..ArgumentNullException If connection is null.
System..::..ArgumentException If oldApplicationPatientId or newApplicationPatientId is null or empty.
Microsoft.Health..::..HealthServiceException If an error occurs when contacting HealthVault.
Show: