BluetoothLEDevice.GetGattServicesAsync 方法

定义

重载

GetGattServicesAsync()

获取此蓝牙 LowEnergy 设备的 GattDeviceServices。

GetGattServicesAsync(BluetoothCacheMode)

返回具有指定缓存模式的此蓝牙 LowEnergy 设备的 GattDeviceServices。

GetGattServicesAsync()

获取此蓝牙 LowEnergy 设备的 GattDeviceServices。

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

返回

返回使用 GattDeviceServicesResult 完成的异步操作。

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
应用功能
bluetooth

适用于

GetGattServicesAsync(BluetoothCacheMode)

返回具有指定缓存模式的此蓝牙 LowEnergy 设备的 GattDeviceServices。

public:
 virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetGattServicesAsync(BluetoothCacheMode cacheMode) = GetGattServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetGattServicesWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetGattServicesAsync(BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetGattServicesWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesAsync(BluetoothCacheMode cacheMode);
function getGattServicesAsync(cacheMode)
Public Function GetGattServicesAsync (cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattDeviceServicesResult)

参数

cacheMode
BluetoothCacheMode

缓存模式。

返回

返回使用 GattDeviceServicesResult 完成的异步操作。

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
应用功能
bluetooth

适用于