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 (的一個實例,因此一個遠端會話) 。

屬性

Status

取得此參與者監看員的操作狀態。

方法

Start()

開始監看遠端會話中的參與者。 探索程式會執行,直到呼叫 Stop 方法為止。 RemoteSystemSessionParticipantWatcher物件可以在稍後再次呼叫其Start方法。

Stop()

停止監看可探索的會話參與者。

事件

Added

將新的參與者新增至遠端會話時引發。

EnumerationCompleted

在參與者的初始列舉完成之後引發。

Removed

移除會話中的參與者時引發。

適用於