共用方式為


GattDeviceService.GetCharacteristicsAsync 方法

定義

多載

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

適用於