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

适用于

另请参阅