Delen via


RemoteSystem.CreateWatcherForUser Method

Definition

Overloads

CreateWatcherForUser(User)

Returns a RemoteSystemWatcher object that operates in the context of the specified User. The user parameter indicates the User to discover devices for.

CreateWatcherForUser(User, IIterable<IRemoteSystemFilter>)

Returns a RemoteSystemWatcher object that operates in the context of a given User and filters the remote systems it can see. The user parameter indicates the User to discover remote systems for. The filters parameter determines which remote systems will be seen.

CreateWatcherForUser(User)

Returns a RemoteSystemWatcher object that operates in the context of the specified User. The user parameter indicates the User to discover devices for.

public:
 static RemoteSystemWatcher ^ CreateWatcherForUser(User ^ user);
/// [Windows.Foundation.Metadata.Overload("CreateWatcherForUser")]
 static RemoteSystemWatcher CreateWatcherForUser(User const& user);
[Windows.Foundation.Metadata.Overload("CreateWatcherForUser")]
public static RemoteSystemWatcher CreateWatcherForUser(User user);
function createWatcherForUser(user)
Public Shared Function CreateWatcherForUser (user As User) As RemoteSystemWatcher

Parameters

user
User

The specific User for which the RemoteSystemWatcher will discover remote systems.

Returns

A watcher that can raise events related to the status of a specific User's discoverable devices.

Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

See also

Applies to

CreateWatcherForUser(User, IIterable<IRemoteSystemFilter>)

Returns a RemoteSystemWatcher object that operates in the context of a given User and filters the remote systems it can see. The user parameter indicates the User to discover remote systems for. The filters parameter determines which remote systems will be seen.

public:
 static RemoteSystemWatcher ^ CreateWatcherForUser(User ^ user, IIterable<IRemoteSystemFilter ^> ^ filters);
/// [Windows.Foundation.Metadata.Overload("CreateWatcherWithFiltersForUser")]
 static RemoteSystemWatcher CreateWatcherForUser(User const& user, IIterable<IRemoteSystemFilter> const& filters);
[Windows.Foundation.Metadata.Overload("CreateWatcherWithFiltersForUser")]
public static RemoteSystemWatcher CreateWatcherForUser(User user, IEnumerable<IRemoteSystemFilter> filters);
function createWatcherForUser(user, filters)
Public Shared Function CreateWatcherForUser (user As User, filters As IEnumerable(Of IRemoteSystemFilter)) As RemoteSystemWatcher

Parameters

user
User

The specific User for which the RemoteSystemWatcher will discover remote systems.

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 user and filter(s) parameters.

Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

See also

Applies to