語言

BluetoothDevice.GetRfcommServicesForIdAsync 方法

定義

多載

名稱 Description
GetRfcommServicesForIdAsync(RfcommServiceId)

擷取遠端藍牙裝置上所有符合指定 RfcommServiceID 的 Rfcomm 服務。

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

擷取遠端藍牙裝置上所有符合指定 RfcommServiceID 的快取 Rfcomm 服務。

GetRfcommServicesForIdAsync(RfcommServiceId)

擷取遠端藍牙裝置上所有符合指定 RfcommServiceID 的 Rfcomm 服務。

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)

參數

serviceId
RfcommServiceId

Rfcomm 服務編號。

傳回

非同步操作完成後,回傳一個 RfcommDeviceServicesResult 物件。

屬性

Windows 需求

規格需求 Description
裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
應用程式功能
bluetooth

另請參閱

適用於

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

擷取遠端藍牙裝置上所有符合指定 RfcommServiceID 的快取 Rfcomm 服務。

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)

參數

serviceId
RfcommServiceId

Rfcomm 服務編號。

cacheMode
BluetoothCacheMode

快取模式。

傳回

非同步操作完成後,回傳一個 RfcommDeviceServicesResult 物件。

屬性

Windows 需求

規格需求 Description
裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
應用程式功能
bluetooth

另請參閱

適用於