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