PackageManager.RemovePackageVolumeAsync(PackageVolume) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified volume.
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)
Parameters
- volume
- PackageVolume
The volume to remove.
Returns
An object that the caller can observe to track progress and completion for the call. The object implements the IAsyncOperationWithProgress pattern.
- Attributes
Remarks
For a call to this method to be successful, the caller needs to fulfil one of these conditions:
- The caller is running in an AppContainer (Low IL) and it has the packageManagement restricted capability.
- The caller is running with Medium IL, or higher.
- The caller’s publisher matches the publisher of the package (or volume) being removed.
For descriptions of the terms above, and links to more info, see Packaging, deployment, and process.