BluetoothDevice.GetRfcommServicesForIdAsync Metode

Definisi

Overload

GetRfcommServicesForIdAsync(RfcommServiceId)

Mengambil semua Layanan Rfcomm pada Perangkat Bluetooth Jarak Jauh yang cocok dengan RfcommServiceId yang ditentukan.

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

Mengambil semua Layanan Rfcomm yang di-cache pada Perangkat Bluetooth Jarak Jauh yang cocok dengan RfcommServiceId yang ditentukan.

GetRfcommServicesForIdAsync(RfcommServiceId)

Mengambil semua Layanan Rfcomm pada Perangkat Bluetooth Jarak Jauh yang cocok dengan RfcommServiceId yang ditentukan.

public:
 virtual IAsyncOperation<RfcommDeviceServicesResult ^> ^ GetRfcommServicesForIdAsync(RfcommServiceId ^ serviceId) = GetRfcommServicesForIdAsync;
/// [Windows.Foundation.Metadata.Overload("GetRfcommServicesForIdAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesForIdAsync(RfcommServiceId const& serviceId);
[Windows.Foundation.Metadata.Overload("GetRfcommServicesForIdAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesForIdAsync(RfcommServiceId serviceId);
function getRfcommServicesForIdAsync(serviceId)
Public Function GetRfcommServicesForIdAsync (serviceId As RfcommServiceId) As IAsyncOperation(Of RfcommDeviceServicesResult)

Parameter

serviceId
RfcommServiceId

Id layanan Rfcomm.

Mengembalikan

Setelah operasi asinkron selesai, mengembalikan objek RfcommDeviceServicesResult .

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Anniversary Edition (diperkenalkan dalam 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v3.0)
Kemampuan aplikasi
bluetooth

Lihat juga

Berlaku untuk

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

Mengambil semua Layanan Rfcomm yang di-cache pada Perangkat Bluetooth Jarak Jauh yang cocok dengan RfcommServiceId yang ditentukan.

public:
 virtual IAsyncOperation<RfcommDeviceServicesResult ^> ^ GetRfcommServicesForIdAsync(RfcommServiceId ^ serviceId, BluetoothCacheMode cacheMode) = GetRfcommServicesForIdAsync;
/// [Windows.Foundation.Metadata.Overload("GetRfcommServicesForIdWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesForIdAsync(RfcommServiceId const& serviceId, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetRfcommServicesForIdWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesForIdAsync(RfcommServiceId serviceId, BluetoothCacheMode cacheMode);
function getRfcommServicesForIdAsync(serviceId, cacheMode)
Public Function GetRfcommServicesForIdAsync (serviceId As RfcommServiceId, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of RfcommDeviceServicesResult)

Parameter

serviceId
RfcommServiceId

Id layanan Rfcomm.

cacheMode
BluetoothCacheMode

Mode cache.

Mengembalikan

Setelah operasi asinkron selesai, mengembalikan objek RfcommDeviceServicesResult .

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Anniversary Edition (diperkenalkan dalam 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v3.0)
Kemampuan aplikasi
bluetooth

Lihat juga

Berlaku untuk