BluetoothDevice.GetRfcommServicesForIdAsync 方法

定义

重载

GetRfcommServicesForIdAsync(RfcommServiceId)

检索与指定的 RfcommServiceId 匹配的远程蓝牙设备上的所有 Rfcomm Services。

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

检索与指定的 RfcommServiceId 匹配的远程蓝牙设备上的所有缓存 Rfcomm Services。

GetRfcommServicesForIdAsync(RfcommServiceId)

检索与指定的 RfcommServiceId 匹配的远程蓝牙设备上的所有 Rfcomm Services。

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 服务 ID。

返回

IAsyncOperation<RfcommDeviceServicesResult>

异步操作完成后,返回 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 Services。

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 服务 ID。

cacheMode
BluetoothCacheMode

缓存模式。

返回

IAsyncOperation<RfcommDeviceServicesResult>

异步操作完成后,返回 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

另请参阅

适用于