共用方式為


RemoteDesktopConnectionInfo.GetForLaunchUri(Uri, WindowId) 方法

定義

擷取與遠端桌面連線相關聯的 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

參數

launchUri
Uri Uri

殼層用來啟動遠端桌面用戶端應用程式的啟動URI,其中包含遠端桌面會話的相關信息。

windowId
WindowId

代表遠端桌面之視窗的 WindowId

傳回

與遠端桌面連線相關聯的 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 配置。

適用於