DeviceWatcherStatus DeviceWatcherStatus DeviceWatcherStatus DeviceWatcherStatus Enum

Definition

Describes the state of a DeviceWatcher object.

public : enum class DeviceWatcherStatus
public enum DeviceWatcherStatus
Public Enum DeviceWatcherStatus
var value = Windows.Devices.Enumeration.DeviceWatcherStatus.aborted;
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Aborted Aborted Aborted Aborted

The watcher has aborted operation. No subsequent events will be raised.

Created Created Created Created

This is the initial state of a Watcher object. During this state clients can register event handlers.

EnumerationCompleted EnumerationCompleted EnumerationCompleted EnumerationCompleted

The watcher has completed enumerating the initial collection. Items can still be added, updated or removed from the collection.

Started Started Started Started

The watcher transitions to the Started state once Start is called. The watcher is enumerating the initial collection. Note that during this enumeration phase it is possible to receive Updated and Removed notifications but only to items that have already been Added.

Stopped Stopped Stopped Stopped

The client has called Stop and the watcher has completed all outstanding events. No further events will be raised.

Stopping Stopping Stopping Stopping

The client has called Stop and the watcher is still in the process of stopping. Events may still be raised.

Remarks

The following state diagram shows how the DeviceWatcher transitions between the states represented by DeviceWatcherStatus enumeration.

state diagram of DeviceWatcher states