PackageManager.RemovePackageVolumeAsync(PackageVolume) 方法

定義

拿掉指定的磁碟區。

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ RemovePackageVolumeAsync(PackageVolume ^ volume) = RemovePackageVolumeAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RemovePackageVolumeAsync(PackageVolume const& volume);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> RemovePackageVolumeAsync(PackageVolume volume);
function removePackageVolumeAsync(volume)
Public Function RemovePackageVolumeAsync (volume As PackageVolume) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

參數

volume
PackageVolume

要移除的磁碟區。

傳回

呼叫端可以觀察的物件,可追蹤呼叫的進度和完成。 對象會實作 IAsyncOperationWithProgress 模式。

屬性

備註

若要讓這個方法的呼叫成功,呼叫端必須滿足下列其中一個條件:

  • 呼叫端正在AppContainer (Low IL) 中執行, 而且 具有 packageManagement 受限制的功能。
  • 呼叫端是以中 IL 或更新版本執行。
  • 呼叫端的發行者會比對要移除之封裝 (或磁碟區) 的發行者。

如需上述詞彙的描述,以及詳細信息的連結,請參閱 封裝、部署和程式

適用於

另請參閱