PackageManagerDebugSettings.SetContentGroupStateAsync 方法

定义

重载

SetContentGroupStateAsync(Package, String, PackageContentGroupState)

设置要调试的内容组的暂存状态。

SetContentGroupStateAsync(Package, String, PackageContentGroupState, Double)

设置要调试的内容组的暂存状态。

SetContentGroupStateAsync(Package, String, PackageContentGroupState)

设置要调试的内容组的暂存状态。

public:
 virtual IAsyncAction ^ SetContentGroupStateAsync(Package ^ package, Platform::String ^ contentGroupName, PackageContentGroupState state) = SetContentGroupStateAsync;
/// [Windows.Foundation.Metadata.Overload("SetContentGroupStateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetContentGroupStateAsync(Package const& package, winrt::hstring const& contentGroupName, PackageContentGroupState const& state);
[Windows.Foundation.Metadata.Overload("SetContentGroupStateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetContentGroupStateAsync(Package package, string contentGroupName, PackageContentGroupState state);
function setContentGroupStateAsync(package, contentGroupName, state)
Public Function SetContentGroupStateAsync (package As Package, contentGroupName As String, state As PackageContentGroupState) As IAsyncAction

参数

package
Package

应用

contentGroupName
String

Platform::String

winrt::hstring

内容组名称。 注册应用后,必须存在 AppxContentGroupMap.xml 才能使此 API 正常工作。

返回

返回状态更改时完成的 IAsyncAction。

属性

另请参阅

适用于

SetContentGroupStateAsync(Package, String, PackageContentGroupState, Double)

设置要调试的内容组的暂存状态。

public:
 virtual IAsyncAction ^ SetContentGroupStateAsync(Package ^ package, Platform::String ^ contentGroupName, PackageContentGroupState state, double completionPercentage) = SetContentGroupStateAsync;
/// [Windows.Foundation.Metadata.Overload("SetContentGroupStateWithPercentageAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetContentGroupStateAsync(Package const& package, winrt::hstring const& contentGroupName, PackageContentGroupState const& state, double const& completionPercentage);
[Windows.Foundation.Metadata.Overload("SetContentGroupStateWithPercentageAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetContentGroupStateAsync(Package package, string contentGroupName, PackageContentGroupState state, double completionPercentage);
function setContentGroupStateAsync(package, contentGroupName, state, completionPercentage)
Public Function SetContentGroupStateAsync (package As Package, contentGroupName As String, state As PackageContentGroupState, completionPercentage As Double) As IAsyncAction

参数

package
Package

应用

contentGroupName
String

Platform::String

winrt::hstring

内容组名称。 注册应用后,必须存在 AppxContentGroupMap.xml 才能使此 API 正常工作。

completionPercentage
Double

double

模拟安装完成百分比。 介于 0 和 100.0 之间的值。 大于 100 的值被限制为 100。

返回

返回状态更改时完成的 IAsyncAction。

属性

注解

无法更改 PackageContentGroup.RequiredGroupName) 指定的所需内容组 (的状态。 如果指定了此组,方法将失败。

另请参阅

适用于