GattDeviceService.GetIncludedServicesForUuidAsync 方法

定义

重载

GetIncludedServicesForUuidAsync(Guid)

从与此 GattDeviceService 实例关联的 serviceUuid 获取包含的服务。

GetIncludedServicesForUuidAsync(Guid, BluetoothCacheMode)

从与此 GattDeviceService 实例关联的 serviceUuid 获取包含的服务。

GetIncludedServicesForUuidAsync(Guid)

从与此 GattDeviceService 实例关联的 serviceUuid 获取包含的服务。

public:
 virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetIncludedServicesForUuidAsync(Platform::Guid serviceUuid) = GetIncludedServicesForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetIncludedServicesForUuidAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(winrt::guid const& serviceUuid);
[Windows.Foundation.Metadata.Overload("GetIncludedServicesForUuidAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(Guid serviceUuid);
function getIncludedServicesForUuidAsync(serviceUuid)
Public Function GetIncludedServicesForUuidAsync (serviceUuid As Guid) As IAsyncOperation(Of GattDeviceServicesResult)

参数

serviceUuid
Guid

Platform::Guid

winrt::guid

128 位蓝牙 GATT 服务 UUID,表示为标准 GUID 对象。

返回

使用 GattDeviceServicesResult 对象完成的异步操作。

属性

Windows 要求

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

适用于

GetIncludedServicesForUuidAsync(Guid, BluetoothCacheMode)

从与此 GattDeviceService 实例关联的 serviceUuid 获取包含的服务。

public:
 virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetIncludedServicesForUuidAsync(Platform::Guid serviceUuid, BluetoothCacheMode cacheMode) = GetIncludedServicesForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetIncludedServicesForUuidWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(winrt::guid const& serviceUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetIncludedServicesForUuidWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(Guid serviceUuid, BluetoothCacheMode cacheMode);
function getIncludedServicesForUuidAsync(serviceUuid, cacheMode)
Public Function GetIncludedServicesForUuidAsync (serviceUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattDeviceServicesResult)

参数

serviceUuid
Guid

Platform::Guid

winrt::guid

128 位蓝牙 GATT 服务 UUID,表示为标准 GUID 对象。

cacheMode
BluetoothCacheMode

缓存模式。

返回

使用 GattDeviceServicesResult 对象完成的异步操作。

属性

Windows 要求

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

适用于