共用方式為


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

適用於

另請參閱