共用方式為


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 引進)

適用於

另請參閱