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
        // ...
    };
}

설명

이 클래스의 instance RemoteSystemSessionInvitationReceivedEventArgs 개체에 포함되며 RemoteSystemSessionInvitationListener.InvitationReceived 이벤트와 함께 전달되었습니다.

초대를 받는 디바이스는 RemoteSystemSessionInvitationListener 를 사용하여 처리해야 합니다.

속성

Sender

초대를 보낸 디바이스를 나타내는 RemoteSystem 개체를 가져옵니다.

SessionInfo

이 디바이스가 초대된 세션을 나타내는 RemoteSystemSessionInfo 개체를 가져옵니다.

적용 대상