Dela via


PackageManager.MovePackageToVolumeAsync Method

Definition

Moves the specified Package to the specified volume using the specified deployment options.

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)

Parameters

packageFullName
String

Platform::String

winrt::hstring

The full name of the package to move.

deploymentOptions
DeploymentOptions

One of the enumeration values that specifies a deployment option.

targetVolume
PackageVolume

The target volume.

Returns

An object that the caller can observe to track progress and completion for the call. The object implements the IAsyncOperationWithProgress pattern.

Attributes

Windows requirements

App capabilities
packageManagement

Remarks

This method lets the caller move a package from one logical volume to another.

Applies to

See also