共用方式為


AppServiceConnection.OpenRemoteAsync(RemoteSystemConnectionRequest) 方法

定義

開啟另一個裝置上應用程式服務的端點連線。

public:
 virtual IAsyncOperation<AppServiceConnectionStatus> ^ OpenRemoteAsync(RemoteSystemConnectionRequest ^ remoteSystemConnectionRequest) = OpenRemoteAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AppServiceConnectionStatus> OpenRemoteAsync(RemoteSystemConnectionRequest const& remoteSystemConnectionRequest);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AppServiceConnectionStatus> OpenRemoteAsync(RemoteSystemConnectionRequest remoteSystemConnectionRequest);
function openRemoteAsync(remoteSystemConnectionRequest)
Public Function OpenRemoteAsync (remoteSystemConnectionRequest As RemoteSystemConnectionRequest) As IAsyncOperation(Of AppServiceConnectionStatus)

參數

remoteSystemConnectionRequest
RemoteSystemConnectionRequest

指定 AppServiceConnection的連線喜好設定,例如傳輸喜好設定 (cloud/proximal/any) 以及目標 System.RemoteSystems 物件。

傳回

非同步作業,可開啟另一部裝置上應用程式服務的端點連線。

屬性

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
應用程式功能
remoteSystem

適用於