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

注解

此方法允许调用方将包从一个逻辑卷移到另一个逻辑卷。

适用于

另请参阅