BluetoothLEDevice.GetGattServicesForUuidAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetGattServicesForUuidAsync(Guid) |
返回具有指定 UUID 的蓝牙 LowEnergy 设备的 GattDeviceServices。 |
GetGattServicesForUuidAsync(Guid, BluetoothCacheMode) |
返回具有指定 UUID 的蓝牙 LowEnergy 设备的 GattDeviceServices。 |
GetGattServicesForUuidAsync(Guid)
返回具有指定 UUID 的蓝牙 LowEnergy 设备的 GattDeviceServices。
public:
virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetGattServicesForUuidAsync(Platform::Guid serviceUuid) = GetGattServicesForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetGattServicesForUuidAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(winrt::guid const& serviceUuid);
[Windows.Foundation.Metadata.Overload("GetGattServicesForUuidAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(Guid serviceUuid);
function getGattServicesForUuidAsync(serviceUuid)
Public Function GetGattServicesForUuidAsync (serviceUuid As Guid) As IAsyncOperation(Of GattDeviceServicesResult)
参数
- serviceUuid
-
Guid
Platform::Guid
winrt::guid
服务 UUID。
返回
- 属性
Windows 要求
设备系列 |
Windows 10 Creators Update (在 10.0.15063.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
|
应用功能 |
bluetooth
|
注解
返回使用 GattDeviceServicesResult 完成的异步操作。
适用于
GetGattServicesForUuidAsync(Guid, BluetoothCacheMode)
返回具有指定 UUID 的蓝牙 LowEnergy 设备的 GattDeviceServices。
public:
virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetGattServicesForUuidAsync(Platform::Guid serviceUuid, BluetoothCacheMode cacheMode) = GetGattServicesForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetGattServicesForUuidWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(winrt::guid const& serviceUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetGattServicesForUuidWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(Guid serviceUuid, BluetoothCacheMode cacheMode);
function getGattServicesForUuidAsync(serviceUuid, cacheMode)
Public Function GetGattServicesForUuidAsync (serviceUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattDeviceServicesResult)
参数
- serviceUuid
-
Guid
Platform::Guid
winrt::guid
服务 UUID。
- cacheMode
- BluetoothCacheMode
缓存模式。
返回
返回使用 GattDeviceServicesResult 完成的异步操作。
- 属性
Windows 要求
设备系列 |
Windows 10 Creators Update (在 10.0.15063.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
|
应用功能 |
bluetooth
|