RemoteSystemWatcher RemoteSystemWatcher RemoteSystemWatcher RemoteSystemWatcher Class

Definition

Watches for activity related to the discovery of remote systems and raises the appropriate events.

public : sealed class RemoteSystemWatcher : IRemoteSystemWatcherpublic sealed class RemoteSystemWatcher : IRemoteSystemWatcherPublic NotInheritable Class RemoteSystemWatcher Implements IRemoteSystemWatcher// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
remoteSystem

Remarks

This class is instantiated when the static method CreateWatcher is called. Objects of this class begin watching activity when the Start method is called and stop when Stop is called, when the operation times out, or when the app exits or is suspended by the system.

Methods

Start() Start() Start() Start()

Starts watching for discoverable remote systems. The discovery process runs for 30 seconds or until the Stop method is called. A RemoteSystemWatcher object can have its Start method called again at a later time.

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 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
remoteSystem

Stop() Stop() Stop() Stop()

Stops watching for discoverable remote systems.

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 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
remoteSystem

Events

RemoteSystemAdded RemoteSystemAdded RemoteSystemAdded RemoteSystemAdded

The event that is raised when a new remote system (device) is discovered.

public : event TypedEventHandler RemoteSystemAdded<RemoteSystemWatcher,  RemoteSystemAddedEventArgs>public event TypedEventHandler RemoteSystemAdded<RemoteSystemWatcher,  RemoteSystemAddedEventArgs>Public Event RemoteSystemAdded<RemoteSystemWatcher,  RemoteSystemAddedEventArgs>// You can use this event in JavaScript.
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
remoteSystem

RemoteSystemRemoved RemoteSystemRemoved RemoteSystemRemoved RemoteSystemRemoved

The event that is raised when a previously discovered remote system (device) is no longer visible.

public : event TypedEventHandler RemoteSystemRemoved<RemoteSystemWatcher,  RemoteSystemRemovedEventArgs>public event TypedEventHandler RemoteSystemRemoved<RemoteSystemWatcher,  RemoteSystemRemovedEventArgs>Public Event RemoteSystemRemoved<RemoteSystemWatcher,  RemoteSystemRemovedEventArgs>// You can use this event in JavaScript.
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
remoteSystem

RemoteSystemUpdated RemoteSystemUpdated RemoteSystemUpdated RemoteSystemUpdated

Raised when a previously discovered remote system (device) changes from proximally connected to cloud connected, or vice versa. It is also raised when a remote system changes one of its monitored properties (see the properties of the RemoteSystem class).

public : event TypedEventHandler RemoteSystemUpdated<RemoteSystemWatcher,  RemoteSystemUpdatedEventArgs>public event TypedEventHandler RemoteSystemUpdated<RemoteSystemWatcher,  RemoteSystemUpdatedEventArgs>Public Event RemoteSystemUpdated<RemoteSystemWatcher,  RemoteSystemUpdatedEventArgs>// You can use this event in JavaScript.
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
remoteSystem

See Also