BluetoothDevice.GetRfcommServicesAsync 方法

定义

重载

GetRfcommServicesAsync()

检索远程蓝牙设备上的所有 Rfcomm 服务。

GetRfcommServicesAsync(BluetoothCacheMode)

检索远程蓝牙设备上的所有缓存 Rfcomm 服务。

GetRfcommServicesAsync()

检索远程蓝牙设备上的所有 Rfcomm 服务。

public:
 virtual IAsyncOperation<RfcommDeviceServicesResult ^> ^ GetRfcommServicesAsync() = GetRfcommServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetRfcommServicesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync();
[Windows.Foundation.Metadata.Overload("GetRfcommServicesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync();
function getRfcommServicesAsync()
Public Function GetRfcommServicesAsync () As IAsyncOperation(Of RfcommDeviceServicesResult)

返回

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

另请参阅

适用于

GetRfcommServicesAsync(BluetoothCacheMode)

检索远程蓝牙设备上的所有缓存 Rfcomm 服务。

public:
 virtual IAsyncOperation<RfcommDeviceServicesResult ^> ^ GetRfcommServicesAsync(BluetoothCacheMode cacheMode) = GetRfcommServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetRfcommServicesWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync(BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetRfcommServicesWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync(BluetoothCacheMode cacheMode);
function getRfcommServicesAsync(cacheMode)
Public Function GetRfcommServicesAsync (cacheMode As BluetoothCacheMode) As IAsyncOperation(Of RfcommDeviceServicesResult)

参数

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

另请参阅

适用于