Share via


PackageManagerDebugSettings.SetContentGroupStateAsync Method

Definition

Overloads

SetContentGroupStateAsync(Package, String, PackageContentGroupState)

Sets the staging state of a content group for debugging.

SetContentGroupStateAsync(Package, String, PackageContentGroupState, Double)

Sets the staging state of a content group for debugging.

SetContentGroupStateAsync(Package, String, PackageContentGroupState)

Sets the staging state of a content group for debugging.

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

Parameters

package
Package

The app Package.

contentGroupName
String

Platform::String

winrt::hstring

The content group name. An AppxContentGroupMap.xml must be present when the app is registered for this API to work.

Returns

Returns an IAsyncAction that completes when the state has changed.

Attributes

See also

Applies to

SetContentGroupStateAsync(Package, String, PackageContentGroupState, Double)

Sets the staging state of a content group for debugging.

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

Parameters

package
Package

The app Package.

contentGroupName
String

Platform::String

winrt::hstring

The content group name. An AppxContentGroupMap.xml must be present when the app is registered for this API to work.

completionPercentage
Double

double

The simulated percent install completion. A value between 0 and 100.0. A value greater than 100 is clamped to 100.

Returns

Returns an IAsyncAction that completes when the state has changed.

Attributes

Remarks

The state of the required content group (which is specified by PackageContentGroup.RequiredGroupName) cannot be changed. The method will fail if this group is specified.

See also

Applies to