RemoteSystemSessionParticipantWatcher Classe

Définition

Gère la découverte et la surveillance des participants à la session à distance en mettant en place les événements appropriés.

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
Héritage
Object Platform::Object IInspectable RemoteSystemSessionParticipantWatcher
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 Creators Update (introduit dans 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v4.0)
Fonctionnalités de l’application
remoteSystem

Remarques

Cette classe est instanciée lorsque la méthode CreateParticipantWatcher est appelée sur un instance de RemoteSystemSession. Les instances de cette classe correspondent chacune à un instance de RemoteSystemSession (et donc à une session à distance).

Propriétés

Status

Obtient la status opérationnelle de cet observateur participant.

Méthodes

Start()

Commence à surveiller les participants à la session à distance. Le processus de découverte s’exécute jusqu’à ce que la méthode Stop soit appelée. Un objet RemoteSystemSessionParticipantWatcher peut avoir sa méthode Start appelée à nouveau ultérieurement.

Stop()

Cesse de surveiller les participants de session détectables.

Événements

Added

Déclenché lorsqu’un nouveau participant a été ajouté à la session à distance.

EnumerationCompleted

Déclenché une fois l’énumération initiale des participants terminée.

Removed

Déclenché lorsqu’un participant à la session a été supprimé.

S’applique à