Bagikan melalui


AppServiceConnection.OpenRemoteAsync(RemoteSystemConnectionRequest) Metode

Definisi

Membuka koneksi ke titik akhir di perangkat lain untuk layanan aplikasi.

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)

Parameter

remoteSystemConnectionRequest
RemoteSystemConnectionRequest

Menentukan preferensi koneksi untuk AppServiceConnection, seperti preferensi transportasi (cloud/proximal/any) serta objek System.RemoteSystems target.

Mengembalikan

Operasi asinkron untuk membuka koneksi ke titik akhir untuk layanan aplikasi di perangkat lain.

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Anniversary Edition (diperkenalkan dalam 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v3.0)
Kemampuan aplikasi
remoteSystem

Berlaku untuk