PackageManager.DeprovisionPackageForAllUsersAsync(String) 方法

定义

取消预配应用 ,以便设备上的新用户不再自动安装该应用。

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ DeprovisionPackageForAllUsersAsync(Platform::String ^ packageFamilyName) = DeprovisionPackageForAllUsersAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> DeprovisionPackageForAllUsersAsync(winrt::hstring const& packageFamilyName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> DeprovisionPackageForAllUsersAsync(string packageFamilyName);
function deprovisionPackageForAllUsersAsync(packageFamilyName)
Public Function DeprovisionPackageForAllUsersAsync (packageFamilyName As String) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

参数

packageFamilyName
String

Platform::String

winrt::hstring

要取消预配的包的包系列名称。

返回

具有当前 DeploymentProgress 状态的异步操作。

属性

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

适用于

另请参阅