共用方式為


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>

物件,表示非同步移除作業,並包含進度更新。

適用於