InstallationManager.RemovePackageAsync(String, RemovalOptions) Method

Definition

Removes a package for the current user asynchronously and receives progress and status messages on the removal operation. Dependency packages are also removed for the user if no other packages installed for the user depend on them.

public:
 static IAsyncOperationWithProgress<PackageInstallResult ^, unsigned int> ^ RemovePackageAsync(Platform::String ^ packageFullName, RemovalOptions removalOptions);
 static IAsyncOperationWithProgress<PackageInstallResult, uint32_t> RemovePackageAsync(winrt::hstring const& packageFullName, RemovalOptions const& removalOptions);
public static IAsyncOperationWithProgress<PackageInstallResult,uint> RemovePackageAsync(string packageFullName, RemovalOptions removalOptions);
function removePackageAsync(packageFullName, removalOptions)
Public Shared Function RemovePackageAsync (packageFullName As String, removalOptions As RemovalOptions) As IAsyncOperationWithProgress(Of PackageInstallResult, UInteger)

Parameters

packageFullName
String

Platform::String

winrt::hstring

A string representation of the package identity to identify the package to be removed.

removalOptions
RemovalOptions

Options that modify the removal operation.

Returns

IAsyncOperationWithProgress<PackageInstallResult,UInt32>

Windows.Foundation.IAsyncOperationWithProgress<Windows.Phone.Management.Deployment.PackageInstallResult,unsigned int>

IAsyncOperationWithProgress<PackageInstallResult,uint32_t>

An object that represents the asynchronous removal operation and includes progress updates.

Applies to