次の方法で共有


PackageDeploymentManager.RepairPackageAsync(String) Method

Definition

Asynchronously 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> ^ RepairPackageAsync(Platform::String ^ package) = RepairPackageAsync;
IAsyncOperationWithProgress<PackageDeploymentResult, PackageDeploymentProgress> RepairPackageAsync(winrt::hstring const& package);
public IAsyncOperationWithProgress<PackageDeploymentResult,PackageDeploymentProgress> RepairPackageAsync(string package);
function repairPackageAsync(package)
Public Function RepairPackageAsync (package As String) As IAsyncOperationWithProgress(Of PackageDeploymentResult, PackageDeploymentProgress)

Parameters

package
String

Platform::String

winrt::hstring

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