다음을 통해 공유


RemoteDesktopConnectionRemoteInfo.SwitchToLocalSessionRequested 이벤트

정의

사용자가 로컬 데스크톱으로 전환하도록 요청할 때 원격 데스크톱 호스트 서비스에서 발생합니다.

// Register
event_token SwitchToLocalSessionRequested(TypedEventHandler<RemoteDesktopConnectionRemoteInfo, IInspectable const&> const& handler) const;

// Revoke with event_token
void SwitchToLocalSessionRequested(event_token const* cookie) const;

// Revoke with event_revoker
RemoteDesktopConnectionRemoteInfo::SwitchToLocalSessionRequested_revoker SwitchToLocalSessionRequested(auto_revoke_t, TypedEventHandler<RemoteDesktopConnectionRemoteInfo, IInspectable const&> const& handler) const;
public event TypedEventHandler<RemoteDesktopConnectionRemoteInfo,object> SwitchToLocalSessionRequested;
function onSwitchToLocalSessionRequested(eventArgs) { /* Your code */ }
remoteDesktopConnectionRemoteInfo.addEventListener("switchtolocalsessionrequested", onSwitchToLocalSessionRequested);
remoteDesktopConnectionRemoteInfo.removeEventListener("switchtolocalsessionrequested", onSwitchToLocalSessionRequested);
- or -
remoteDesktopConnectionRemoteInfo.onswitchtolocalsessionrequested = onSwitchToLocalSessionRequested;
Public Custom Event SwitchToLocalSessionRequested As TypedEventHandler(Of RemoteDesktopConnectionRemoteInfo, Object) 

이벤트 유형

적용 대상