PackageManager.SetPackageVolumeOfflineAsync(PackageVolume) 方法

定义

将指定的卷设置为脱机状态。 调用方必须是管理员组的成员。

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

参数

packageVolume
PackageVolume

要脱机的卷。

返回

一个 对象,调用方可以观察该对象,用于跟踪调用的进度和完成情况。 对象实现 IAsyncOperationWithProgress 模式。

属性

Windows 要求

要求 说明
应用功能
packageManagement

适用于

另请参阅