Share via


PackageManager.AddPackageVolumeAsync(String) Method

Definition

Creates a new volume. The caller must be a member of the administrators group.

public:
 virtual IAsyncOperation<PackageVolume ^> ^ AddPackageVolumeAsync(Platform::String ^ packageStorePath) = AddPackageVolumeAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PackageVolume> AddPackageVolumeAsync(winrt::hstring const& packageStorePath);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PackageVolume> AddPackageVolumeAsync(string packageStorePath);
function addPackageVolumeAsync(packageStorePath)
Public Function AddPackageVolumeAsync (packageStorePath As String) As IAsyncOperation(Of PackageVolume)

Parameters

packageStorePath
String

Platform::String

winrt::hstring

The absolute path of the Package store.

Returns

An object that the caller can observe to track progress and completion for the call. The object implements the IAsyncOperation interface and returns the newly added PackageVolume.

Attributes

Windows requirements

App capabilities
packageManagement

Applies to

See also