Watcher Status Enum
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public enum class DeviceWatcherStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)] enum class DeviceWatcherStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)] public enum DeviceWatcherStatus
var value = Windows.Devices.Enumeration.DeviceWatcherStatus.created
Public Enum DeviceWatcherStatus
Windows 10 (introduced in 10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced in v1.0)
The watcher has aborted operation. No subsequent events will be raised.
This is the initial state of a Watcher object. During this state clients can register event handlers.
The watcher has completed enumerating the initial collection. Items can still be added, updated or removed from the collection.
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.
The client has called Stop and the watcher has completed all outstanding events. No further events will be raised.
The client has called Stop and the watcher is still in the process of stopping. Events may still be raised.
The following state diagram shows how the DeviceWatcher transitions between the states represented by DeviceWatcherStatus enumeration.