Jaa


RemoteSystemSessionParticipantWatcher Class

Definition

Handles the discovery and monitoring of remote session participants by raising the appropriate events.

public ref class RemoteSystemSessionParticipantWatcher sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RemoteSystemSessionParticipantWatcher final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RemoteSystemSessionParticipantWatcher final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class RemoteSystemSessionParticipantWatcher
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RemoteSystemSessionParticipantWatcher
Public NotInheritable Class RemoteSystemSessionParticipantWatcher
Inheritance
Object Platform::Object IInspectable RemoteSystemSessionParticipantWatcher
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
remoteSystem

Remarks

This class is instantiated when the CreateParticipantWatcher method is called on an instance of RemoteSystemSession. Instances of this class each correspond to one instance of RemoteSystemSession (and therefore one remote session).

Properties

Status

Gets the operational status of this participant watcher.

Methods

Start()

Starts watching for participants in the remote session. The discovery process runs until the Stop method is called. A RemoteSystemSessionParticipantWatcher object can have its Start method called again at a later time.

Stop()

Stops watching for discoverable session participants.

Events

Added

Raised when a new participant has been added to the remote session.

EnumerationCompleted

Raised after the initial enumeration of participants has completed.

Removed

Raised when a participant in the session has been removed.

Applies to