共用方式為


PackageManager.SetPackageVolumeOnlineAsync(PackageVolume) 方法

定義

將指定的磁片區設定為線上狀態。 呼叫端必須是系統管理員群組的成員。

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ SetPackageVolumeOnlineAsync(PackageVolume ^ packageVolume) = SetPackageVolumeOnlineAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> SetPackageVolumeOnlineAsync(PackageVolume const& packageVolume);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> SetPackageVolumeOnlineAsync(PackageVolume packageVolume);
function setPackageVolumeOnlineAsync(packageVolume)
Public Function SetPackageVolumeOnlineAsync (packageVolume As PackageVolume) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

參數

packageVolume
PackageVolume

要上線的磁片區。

傳回

呼叫端可以觀察的物件,可追蹤呼叫的進度和完成。 物件會實作 IAsyncOperationWithProgress 模式。

屬性

Windows 需求

應用程式功能
packageManagement

適用於

另請參閱