InstallationManager.RemovePackageAsync(String, RemovalOptions) 方法

定义

异步删除当前用户的包,并接收有关删除操作的进度和状态消息。 如果为用户安装的任何其他包都依赖于依赖依赖项包,则也会为用户删除依赖项包。

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)

参数

packageFullName
String

Platform::String

winrt::hstring

用于标识要删除的包的包标识的字符串表示形式。

removalOptions
RemovalOptions

用于修改删除操作的选项。

返回

IAsyncOperationWithProgress<PackageInstallResult,UInt32>

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

IAsyncOperationWithProgress<PackageInstallResult,uint32_t>

表示异步删除操作并包含进度更新的 对象。

适用于