RemoteSystem.CreateWatcher Method

Definition

Overloads

CreateWatcher()

Returns a RemoteSystemWatcher object with no filters.

CreateWatcher(IIterable<IRemoteSystemFilter>)

Returns a RemoteSystemWatcher object that filters the remote systems it can see. The filters parameter determines which remote systems will be seen.

CreateWatcher()

Returns a RemoteSystemWatcher object with no filters.

public:
 static RemoteSystemWatcher ^ CreateWatcher();
/// [Windows.Foundation.Metadata.Overload("CreateWatcher")]
 static RemoteSystemWatcher CreateWatcher();
[Windows.Foundation.Metadata.Overload("CreateWatcher")]
public static RemoteSystemWatcher CreateWatcher();
function createWatcher()
Public Shared Function CreateWatcher () As RemoteSystemWatcher

Returns

A watcher that can raise events related to the status of any discoverable device.

Attributes

Windows requirements

App capabilities
remoteSystem

Remarks

Important

You must confirm access to the remote system platform with a call to RemoteSystem.RequestAccessAsync before you call this method.

See also

Applies to

CreateWatcher(IIterable<IRemoteSystemFilter>)

Returns a RemoteSystemWatcher object that filters the remote systems it can see. The filters parameter determines which remote systems will be seen.

public:
 static RemoteSystemWatcher ^ CreateWatcher(IIterable<IRemoteSystemFilter ^> ^ filters);
/// [Windows.Foundation.Metadata.Overload("CreateWatcherWithFilters")]
 static RemoteSystemWatcher CreateWatcher(IIterable<IRemoteSystemFilter> const& filters);
[Windows.Foundation.Metadata.Overload("CreateWatcherWithFilters")]
public static RemoteSystemWatcher CreateWatcher(IEnumerable<IRemoteSystemFilter> filters);
function createWatcher(filters)
Public Shared Function CreateWatcher (filters As IEnumerable(Of IRemoteSystemFilter)) As RemoteSystemWatcher

Parameters

filters

IIterable<IRemoteSystemFilter>

IEnumerable<IRemoteSystemFilter>

A list of objects implementing the IRemoteSystemFilter interface. Each item in the list acts as a filter for the set of remote systems that can be discovered.

Returns

A watcher that can raise events related to the status of any discoverable devices that pass the given filter(s).

Attributes

Windows requirements

App capabilities
remoteSystem

Remarks

Important

You must confirm access to the remote system platform with a call to RemoteSystem.RequestAccessAsync before you call this method.

See also

Applies to