AppDiagnosticInfoWatcher Class

Definition

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 ref class AppDiagnosticInfoWatcher sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppDiagnosticInfoWatcher final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppDiagnosticInfoWatcher
Public NotInheritable Class AppDiagnosticInfoWatcher
Inheritance
Object Platform::Object IInspectable AppDiagnosticInfoWatcher
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)
App capabilities
appDiagnostics

Properties

Status

Gets this AppDiagnosticInfoWatcher status.

Methods

Start()

Start firing events when the execution state changes, or apps change, within the list of running apps.

Stop()

Stops firing events when the execution state changes, or apps change, within the list of running apps.

Events

Added

Event that fires when an app is added to the list of running apps.

EnumerationCompleted

Fires when the watcher has completed enumerating the list of running apps that are available to monitor.

Removed

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

Stopped

Event that fires when this AppDiagnosticInfoWatcher stops watching for changes.

Applies to