PackageDeploymentManager.RepairPackageByUriAsync(Uri) Method

Definition

Provides the same functionality as is available interactively via Windows Settings' Repair button on the detail page for an app (Apps > Installed apps > ... > Advanced options > Repair).

If this app isn't working right, we can try to repair it. The app's data won't be affected.

public:
 virtual IAsyncOperationWithProgress<PackageDeploymentResult ^, PackageDeploymentProgress> ^ RepairPackageByUriAsync(Uri ^ packageUri) = RepairPackageByUriAsync;
IAsyncOperationWithProgress<PackageDeploymentResult, PackageDeploymentProgress> RepairPackageByUriAsync(Uri const& packageUri);
public IAsyncOperationWithProgress<PackageDeploymentResult,PackageDeploymentProgress> RepairPackageByUriAsync(System.Uri packageUri);
function repairPackageByUriAsync(packageUri)
Public Function RepairPackageByUriAsync (packageUri As Uri) As IAsyncOperationWithProgress(Of PackageDeploymentResult, PackageDeploymentProgress)

Parameters

packageUri
Uri Uri

The uri of the target package(s) to repair.

Returns

An asynchronous operation object which, when it completes, contains a value representing the result of the operation.

Applies to