Freigeben über


PackageDeploymentManager.ResetPackageAsync(String) Method

Definition

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

If this app still isn't working right, reset it. The app's data will be deleted.

public:
 virtual IAsyncOperationWithProgress<PackageDeploymentResult ^, PackageDeploymentProgress> ^ ResetPackageAsync(Platform::String ^ package) = ResetPackageAsync;
IAsyncOperationWithProgress<PackageDeploymentResult, PackageDeploymentProgress> ResetPackageAsync(winrt::hstring const& package);
public IAsyncOperationWithProgress<PackageDeploymentResult,PackageDeploymentProgress> ResetPackageAsync(string package);
function resetPackageAsync(package)
Public Function ResetPackageAsync (package As String) As IAsyncOperationWithProgress(Of PackageDeploymentResult, PackageDeploymentProgress)

Parameters

package
String

Platform::String

winrt::hstring

The target package(s) to reset.

Returns

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

Applies to