Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DeviceWatcherStatus enumeration

Applies to Windows and Windows Phone

Describes the state of a DeviceWatcher object.

Syntax


var value = Windows.Devices.Enumeration.DeviceWatcherStatus.created;

Attributes

[Version(0x06020000)]

Members

The DeviceWatcherStatus enumeration has these members.

MemberValueDescription
Created | created0

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

Started | started1

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.

EnumerationCompleted | enumerationCompleted2

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

Stopping | stopping3

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

Stopped | stopped4

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

Aborted | aborted5

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

Remarks

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

state diagram of DeviceWatcher states

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Enumeration
Windows::Devices::Enumeration [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft