AppDiagnosticInfoWatcher AppDiagnosticInfoWatcher AppDiagnosticInfoWatcher AppDiagnosticInfoWatcher 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 diagnostic information for an app and get notifications when an app is added or removed from the list of running apps.

public : sealed class AppDiagnosticInfoWatcher : IAppDiagnosticInfoWatcherpublic sealed class AppDiagnosticInfoWatcher : IAppDiagnosticInfoWatcherPublic NotInheritable Class AppDiagnosticInfoWatcher Implements IAppDiagnosticInfoWatcher// 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

Properties

Status Status Status Status

Prerelease. Gets this AppDiagnosticInfoWatcher status.

public : AppDiagnosticInfoWatcherStatus Status { get; }public AppDiagnosticInfoWatcherStatus Status { get; }Public ReadOnly Property Status As AppDiagnosticInfoWatcherStatus// 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 apps change, within the list of running apps.

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 apps change, within the list of running apps.

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 an app is added to the list of running apps.

public : event TypedEventHandler Added<AppDiagnosticInfoWatcher,  AppDiagnosticInfoWatcherEventArgs>public event TypedEventHandler Added<AppDiagnosticInfoWatcher,  AppDiagnosticInfoWatcherEventArgs>Public Event Added<AppDiagnosticInfoWatcher,  AppDiagnosticInfoWatcherEventArgs>// 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 list of running apps that are available to monitor.

public : event TypedEventHandler EnumerationCompleted<AppDiagnosticInfoWatcher,  object>public event TypedEventHandler EnumerationCompleted<AppDiagnosticInfoWatcher,  object>Public Event EnumerationCompleted<AppDiagnosticInfoWatcher,  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 apps are added or removed.

Removed Removed Removed Removed

Prerelease. Fires when one of the apps has been removed from the list of running apps.

public : event TypedEventHandler Removed<AppDiagnosticInfoWatcher,  AppDiagnosticInfoWatcherEventArgs>public event TypedEventHandler Removed<AppDiagnosticInfoWatcher,  AppDiagnosticInfoWatcherEventArgs>Public Event Removed<AppDiagnosticInfoWatcher,  AppDiagnosticInfoWatcherEventArgs>// 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 AppDiagnosticInfoWatcher stops watching for changes.

public : event TypedEventHandler Stopped<AppDiagnosticInfoWatcher,  object>public event TypedEventHandler Stopped<AppDiagnosticInfoWatcher,  object>Public Event Stopped<AppDiagnosticInfoWatcher,  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