PackageManager.AddPackageVolumeAsync(String) 方法

定义

创建新卷。 调用方必须是管理员组的成员。

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)

参数

packageStorePath
String

Platform::String

winrt::hstring

存储的绝对路径。

返回

一个 对象,调用方可以观察该对象,用于跟踪调用的进度和完成情况。 对象实现 IAsyncOperation 接口并返回新添加的 PackageVolume

属性

Windows 要求

应用功能
packageManagement

适用于

另请参阅