共用方式為


PackageManager.MovePackageToVolumeAsync 方法

定義

使用指定的部署選項,將指定的 封裝 移至指定的磁片區。

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ MovePackageToVolumeAsync(Platform::String ^ packageFullName, DeploymentOptions deploymentOptions, PackageVolume ^ targetVolume) = MovePackageToVolumeAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> MovePackageToVolumeAsync(winrt::hstring const& packageFullName, DeploymentOptions const& deploymentOptions, PackageVolume const& targetVolume);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> MovePackageToVolumeAsync(string packageFullName, DeploymentOptions deploymentOptions, PackageVolume targetVolume);
function movePackageToVolumeAsync(packageFullName, deploymentOptions, targetVolume)
Public Function MovePackageToVolumeAsync (packageFullName As String, deploymentOptions As DeploymentOptions, targetVolume As PackageVolume) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

參數

packageFullName
String

Platform::String

winrt::hstring

要移動之封裝的完整名稱。

deploymentOptions
DeploymentOptions

其中一個列舉值,指定部署選項。

targetVolume
PackageVolume

目標磁片區。

傳回

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

屬性

Windows 需求

應用程式功能
packageManagement

備註

這個方法可讓呼叫端將封裝從一個邏輯磁片區移至另一個磁片區。

適用於

另請參閱