RemoteDesktopConnectionInfo.GetForLaunchUri(Uri, WindowId) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取與遠端桌面連線相關聯的 RemoteDesktopConnectionInfo ,並使用 OS 註冊視窗來代表遠端桌面。
public:
static RemoteDesktopConnectionInfo ^ GetForLaunchUri(Uri ^ launchUri, WindowId windowId);
static RemoteDesktopConnectionInfo GetForLaunchUri(Uri const& launchUri, WindowId const& windowId);
public static RemoteDesktopConnectionInfo GetForLaunchUri(System.Uri launchUri, WindowId windowId);
function getForLaunchUri(launchUri, windowId)
Public Shared Function GetForLaunchUri (launchUri As Uri, windowId As WindowId) As RemoteDesktopConnectionInfo
參數
傳回
與遠端桌面連線相關聯的 RemoteDesktopConnectionInfo 。
備註
此呼叫是由在本機桌面上執行的遠端桌面用戶端應用程式進行。
提供者應用程式會將啟動通訊協定字串傳遞至 GetForLaunchUri 來完成啟動交握。
啟動 URI
launchUri 可用來啟動遠端桌面用戶端應用程式。 範例 URI 格式:
ms-remotedesktop:switch?remoteDesktopId={remote desktop Id}&correlationId={correlation Id}&supportBluetoothSettings=false
遠端桌面用戶端應用程式必須註冊才能處理 URI 配置,ms-remotedesktop-launch
才能使用 Windows 365 Switch 啟動 Windows 365 雲端電腦。 範例 URI 格式:
ms-remotedesktop-launch:?supportBluetoothSettings={true if local PC supports Bluetooth settings page}&correlationId={correlation Id}
如果遠端桌面用戶端應用程式想要使用 Windows 365 開機啟動 Windows 365 雲端電腦,則必須註冊以處理 ms-remotedesktop-launch
URI 配置。