InstallationManager.RemovePackageAsync(String, RemovalOptions) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
异步删除当前用户的包,并接收有关删除操作的进度和状态消息。 如果为用户安装的任何其他包都依赖于依赖依赖项包,则也会为用户删除依赖项包。
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
用于修改删除操作的选项。
返回
Windows.Foundation.IAsyncOperationWithProgress<Windows.Phone.Management.Deployment.PackageInstallResult,unsigned int>
表示异步删除操作并包含进度更新的 对象。