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

适用于