共用方式為


GattDeviceService.GetCharacteristicsForUuidAsync 方法

定義

多載

GetCharacteristicsForUuidAsync(Guid, BluetoothCacheMode)

取得屬於這個 GattDeviceService 實例且與特性Uuid 相關聯的字元符號。

GetCharacteristicsForUuidAsync(Guid)

取得屬於這個 GattDeviceService 實例且與特性Uuid 相關聯的字元符號。

GetCharacteristicsForUuidAsync(Guid, BluetoothCacheMode)

取得屬於這個 GattDeviceService 實例且與特性Uuid 相關聯的字元符號。

public:
 virtual IAsyncOperation<GattCharacteristicsResult ^> ^ GetCharacteristicsForUuidAsync(Platform::Guid characteristicUuid, BluetoothCacheMode cacheMode) = GetCharacteristicsForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetCharacteristicsForUuidWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(winrt::guid const& characteristicUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetCharacteristicsForUuidWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattCharacteristicsResult> GetCharacteristicsForUuidAsync(Guid characteristicUuid, BluetoothCacheMode cacheMode);
function getCharacteristicsForUuidAsync(characteristicUuid, cacheMode)
Public Function GetCharacteristicsForUuidAsync (characteristicUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattCharacteristicsResult)

參數

characteristicUuid
Guid

Platform::Guid

winrt::guid

要擷取之特性的 UUID。

cacheMode
BluetoothCacheMode

快取模式。

傳回

使用 GattCharacteristicsResult 物件完成的非同步作業。

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
應用程式功能
bluetooth

適用於

GetCharacteristicsForUuidAsync(Guid)

取得屬於這個 GattDeviceService 實例且與特性Uuid 相關聯的字元符號。

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

參數

characteristicUuid
Guid

Platform::Guid

winrt::guid

要擷取之特性的 UUID。

傳回

使用 GattCharacteristicsResult 物件完成的非同步作業。

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
應用程式功能
bluetooth

適用於