共用方式為


GattCharacteristic.GetDescriptorsForUuidAsync 方法

定義

多載

GetDescriptorsForUuidAsync(Guid)

傳回其 UUID 符合描述元Uuid 的描述項。

GetDescriptorsForUuidAsync(Guid, BluetoothCacheMode)

傳回描述項,其 UUID 與指定的 cacheMode 相符描述元Uuid。

GetDescriptorsForUuidAsync(Guid)

傳回其 UUID 符合描述元Uuid 的描述項。

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

參數

descriptorUuid
Guid

Platform::Guid

winrt::guid

要擷取之描述元的 UUID。

傳回

以 UUID 比對描述元Uuid 之描述元完成的非同步作業。

屬性

Windows 需求

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

適用於

GetDescriptorsForUuidAsync(Guid, BluetoothCacheMode)

傳回描述項,其 UUID 與指定的 cacheMode 相符描述元Uuid。

public:
 virtual IAsyncOperation<GattDescriptorsResult ^> ^ GetDescriptorsForUuidAsync(Platform::Guid descriptorUuid, BluetoothCacheMode cacheMode) = GetDescriptorsForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetDescriptorsForUuidWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDescriptorsResult> GetDescriptorsForUuidAsync(winrt::guid const& descriptorUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetDescriptorsForUuidWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDescriptorsResult> GetDescriptorsForUuidAsync(Guid descriptorUuid, BluetoothCacheMode cacheMode);
function getDescriptorsForUuidAsync(descriptorUuid, cacheMode)
Public Function GetDescriptorsForUuidAsync (descriptorUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattDescriptorsResult)

參數

descriptorUuid
Guid

Platform::Guid

winrt::guid

要擷取之描述元的 UUID。

cacheMode
BluetoothCacheMode

快取模式。

傳回

傳回非同步作業,此作業會以描述元Uuid 的描述項完成。

屬性

Windows 需求

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

適用於