RemoteSystemSessionInvitation クラス

定義

リモート セッションに参加するためのセッション参加者からの招待を表します。

public ref class RemoteSystemSessionInvitation 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 RemoteSystemSessionInvitation final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RemoteSystemSessionInvitation 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 RemoteSystemSessionInvitation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RemoteSystemSessionInvitation
Public NotInheritable Class RemoteSystemSessionInvitation
継承
Object Platform::Object IInspectable RemoteSystemSessionInvitation
属性

Windows の要件

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

リモート セッションの招待を受信して処理する方法の例については、次のコードを参照してください。

public void SubscribeAndHandleInvites() {
    var invitationListener = new RemoteSystemSessionInvitationListener();

    // register the following code to handle this event:
    invitationListener.InvitationReceived += async (sender, args) => {

        // issue a join request to the session
        RemoteSystemSessionJoinResult joinResult = await args.Invitation.RemoteSystemSessionInfo.JoinAsync();

        // handle the join result as in the normal session discovery scenario
        // ...
    };
}

注釈

このクラスのインスタンスは、 RemoteSystemSessionInvitationListener.InvitationReceived イベントと共に渡された RemoteSystemSessionInvitationReceivedEventArgs オブジェクトに含まれています。

招待を受信するデバイスは、 RemoteSystemSessionInvitationListener を使用して処理する必要があります。

プロパティ

Sender

招待を送信したデバイスを表す RemoteSystem オブジェクトを取得します。

SessionInfo

このデバイスが招待されたセッションを表す RemoteSystemSessionInfo オブジェクトを取得します。

適用対象