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>
物件,表示非同步移除作業,並包含進度更新。