PackageManagerDebugSettings PackageManagerDebugSettings PackageManagerDebugSettings PackageManagerDebugSettings Class

Definition

Settings for debugging app packages.

public : sealed class PackageManagerDebugSettings : IPackageManagerDebugSettingspublic sealed class PackageManagerDebugSettings : IPackageManagerDebugSettingsPublic NotInheritable Class PackageManagerDebugSettings Implements IPackageManagerDebugSettings// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Methods

SetContentGroupStateAsync(Package, String, PackageContentGroupState) SetContentGroupStateAsync(Package, String, PackageContentGroupState) SetContentGroupStateAsync(Package, String, PackageContentGroupState) SetContentGroupStateAsync(Package, String, PackageContentGroupState)

Sets the staging state of a content group for debugging.

public : IAsyncAction SetContentGroupStateAsync(Package package, PlatForm::String contentGroupName, PackageContentGroupState state)public IAsyncAction SetContentGroupStateAsync(Package package, String contentGroupName, PackageContentGroupState state)Public Function SetContentGroupStateAsync(package As Package, contentGroupName As String, state As PackageContentGroupState) As IAsyncAction// You can use this method in JavaScript.
Parameters
package
Package Package Package Package

The app package.

contentGroupName
PlatForm::String String String String

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.

SetContentGroupStateAsync(Package, String, PackageContentGroupState, Double) SetContentGroupStateAsync(Package, String, PackageContentGroupState, Double) SetContentGroupStateAsync(Package, String, PackageContentGroupState, Double) SetContentGroupStateAsync(Package, String, PackageContentGroupState, Double)

Sets the staging state of a content group for debugging.

public : IAsyncAction SetContentGroupStateAsync(Package package, PlatForm::String contentGroupName, PackageContentGroupState state, double completionPercentage)public IAsyncAction SetContentGroupStateAsync(Package package, String contentGroupName, PackageContentGroupState state, Double completionPercentage)Public Function SetContentGroupStateAsync(package As Package, contentGroupName As String, state As PackageContentGroupState, completionPercentage As Double) As IAsyncAction// You can use this method in JavaScript.
Parameters
package
Package Package Package Package

The app package.

contentGroupName
PlatForm::String String String String

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

completionPercentage
double Double 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.

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.