RemoteSystemSessionParticipantWatcher クラス

定義

適切なイベントを発生させることで、リモート セッション参加者の検出と監視を処理します。

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
継承
Object Platform::Object IInspectable RemoteSystemSessionParticipantWatcher
属性

Windows の要件

デバイス ファミリ
Windows 10 Creators Update (10.0.15063.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v4.0 で導入)
アプリの機能
remoteSystem

注釈

このクラスは、RemoteSystemSession のインスタンスで CreateParticipantWatcher メソッドが呼び出されたときにインスタンス化されます。 このクラスのインスタンスはそれぞれ 、RemoteSystemSession の 1 つのインスタンス (したがって、1 つのリモート セッション) に対応します。

プロパティ

Status

この参加者ウォッチャーの操作状態を取得します。

メソッド

Start()

リモート セッションの参加者の監視を開始します。 検出プロセスは 、Stop メソッドが呼び出されるまで実行されます。 RemoteSystemSessionParticipantWatcher オブジェクトは、その Start メソッドを後で再度呼び出すことができます。

Stop()

検出可能なセッション参加者の監視を停止します。

イベント

Added

新しい参加者がリモート セッションに追加されたときに発生します。

EnumerationCompleted

参加者の初期列挙が完了した後に発生します。

Removed

セッションの参加者が削除されたときに発生します。

適用対象