BluetoothDevice.GetRfcommServicesForIdAsync 方法

定義

多載

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 需求

裝置系列
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 需求

裝置系列
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

另請參閱

適用於