RemoteDesktopConnectionRemoteInfo.SwitchToLocalSessionRequested 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当用户请求切换到本地桌面时,在远程桌面主机服务中引发。
// 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)
事件类型
TypedEventHandler<RemoteDesktopConnectionRemoteInfo,IInspectable>