AppResourceGroupInfoWatcher AppResourceGroupInfoWatcher AppResourceGroupInfoWatcher AppResourceGroupInfoWatcher Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Allows you to monitor the set of resource groups (AppResourceGroupInfo objects) for an app, and get notifications when a resource group is added or removed.

public : sealed class AppResourceGroupInfoWatcher : IAppResourceGroupInfoWatcherpublic sealed class AppResourceGroupInfoWatcher : IAppResourceGroupInfoWatcherPublic NotInheritable Class AppResourceGroupInfoWatcher Implements IAppResourceGroupInfoWatcher// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

Remarks

For example, a resource group is added when an out-of-process background task is activated; a resource group is removed when a background task completes.

Properties

Status Status Status Status

Prerelease. Gets this AppResourceGroupInfoWatcher status.

public : AppResourceGroupInfoWatcherStatus Status { get; }public AppResourceGroupInfoWatcherStatus Status { get; }Public ReadOnly Property Status As AppResourceGroupInfoWatcherStatus// You can use this property in JavaScript.
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

Methods

Start() Start() Start() Start()

Prerelease. Start firing events when the execution state changes, or resource groups change, within the set of resource groups for this app.

public : void Start()public void Start()Public Function Start() As void// You can use this method in JavaScript.
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

Stop() Stop() Stop() Stop()

Prerelease. Stops firing events when the execution state changes, or resource groups change, within the set of resource groups for this app.

public : void Stop()public void Stop()Public Function Stop() As void// You can use this method in JavaScript.
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

Events

Added Added Added Added

Prerelease. Event that fires when a resource group is added.

public : event TypedEventHandler Added<AppResourceGroupInfoWatcher,  AppResourceGroupInfoWatcherEventArgs>public event TypedEventHandler Added<AppResourceGroupInfoWatcher,  AppResourceGroupInfoWatcherEventArgs>Public Event Added<AppResourceGroupInfoWatcher,  AppResourceGroupInfoWatcherEventArgs>// You can use this event in JavaScript.
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

EnumerationCompleted EnumerationCompleted EnumerationCompleted EnumerationCompleted

Prerelease. Fires when the watcher has completed enumerating the resource groups that are available to monitor.

public : event TypedEventHandler EnumerationCompleted<AppResourceGroupInfoWatcher,  object>public event TypedEventHandler EnumerationCompleted<AppResourceGroupInfoWatcher,  object>Public Event EnumerationCompleted<AppResourceGroupInfoWatcher,  object>// You can use this event in JavaScript.
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

Remarks

After enumeration is complete, the watcher will start reporting when items are added or removed.

ExecutionStateChanged ExecutionStateChanged ExecutionStateChanged ExecutionStateChanged

Prerelease. Event that fires when the execution state (running, suspending, an so on) for this group changes.

public : event TypedEventHandler ExecutionStateChanged<AppResourceGroupInfoWatcher,  AppResourceGroupInfoWatcherExecutionStateChangedEventArgs>public event TypedEventHandler ExecutionStateChanged<AppResourceGroupInfoWatcher,  AppResourceGroupInfoWatcherExecutionStateChangedEventArgs>Public Event ExecutionStateChanged<AppResourceGroupInfoWatcher,  AppResourceGroupInfoWatcherExecutionStateChangedEventArgs>// You can use this event in JavaScript.
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

Removed Removed Removed Removed

Prerelease. Fires when one of the resource groups has been removed from the list of AppResourceGroupInfos in the package.

public : event TypedEventHandler Removed<AppResourceGroupInfoWatcher,  AppResourceGroupInfoWatcherEventArgs>public event TypedEventHandler Removed<AppResourceGroupInfoWatcher,  AppResourceGroupInfoWatcherEventArgs>Public Event Removed<AppResourceGroupInfoWatcher,  AppResourceGroupInfoWatcherEventArgs>// You can use this event in JavaScript.
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

Stopped Stopped Stopped Stopped

Prerelease. Event that fires when this AppResourceGroupInfoWatcher stops watching for resource group changes.

public : event TypedEventHandler Stopped<AppResourceGroupInfoWatcher,  object>public event TypedEventHandler Stopped<AppResourceGroupInfoWatcher,  object>Public Event Stopped<AppResourceGroupInfoWatcher,  object>// You can use this event in JavaScript.
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics
See Also