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
|