GattDeviceService.GetIncludedServicesAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetIncludedServicesAsync() |
获取与此 GattDeviceService 实例关联的包含的服务。 |
GetIncludedServicesAsync(BluetoothCacheMode) |
获取与此 GattDeviceService 实例关联的包含的服务。 |
GetIncludedServicesAsync()
获取与此 GattDeviceService 实例关联的包含的服务。
public:
virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetIncludedServicesAsync() = GetIncludedServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetIncludedServicesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync();
[Windows.Foundation.Metadata.Overload("GetIncludedServicesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync();
function getIncludedServicesAsync()
Public Function GetIncludedServicesAsync () As IAsyncOperation(Of GattDeviceServicesResult)
返回
使用 GattDeviceServicesResult 对象完成的异步操作。
- 属性
Windows 要求
设备系列 |
Windows 10 Creators Update (在 10.0.15063.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
|
应用功能 |
bluetooth
|
适用于
GetIncludedServicesAsync(BluetoothCacheMode)
获取与此 GattDeviceService 实例关联的包含的服务。
public:
virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetIncludedServicesAsync(BluetoothCacheMode cacheMode) = GetIncludedServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetIncludedServicesWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync(BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetIncludedServicesWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync(BluetoothCacheMode cacheMode);
function getIncludedServicesAsync(cacheMode)
Public Function GetIncludedServicesAsync (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
|