BluetoothLEDevice.GetGattServicesForUuidAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetGattServicesForUuidAsync(Guid) |
傳回具有指定 UUID 之藍牙 LowEnergy 裝置的 GattDeviceServices。 |
GetGattServicesForUuidAsync(Guid, BluetoothCacheMode) |
傳回具有指定 UUID 之藍牙 LowEnergy 裝置的 GattDeviceServices。 |
GetGattServicesForUuidAsync(Guid)
傳回具有指定 UUID 之藍牙 LowEnergy 裝置的 GattDeviceServices。
public:
virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetGattServicesForUuidAsync(Platform::Guid serviceUuid) = GetGattServicesForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetGattServicesForUuidAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(winrt::guid const& serviceUuid);
[Windows.Foundation.Metadata.Overload("GetGattServicesForUuidAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(Guid serviceUuid);
function getGattServicesForUuidAsync(serviceUuid)
Public Function GetGattServicesForUuidAsync (serviceUuid As Guid) As IAsyncOperation(Of GattDeviceServicesResult)
參數
- serviceUuid
-
Guid
Platform::Guid
winrt::guid
服務 UUID。
傳回
- 屬性
Windows 需求
裝置系列 |
Windows 10 Creators Update (已於 10.0.15063.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
|
應用程式功能 |
bluetooth
|
備註
傳回使用 GattDeviceServicesResult 完成的非同步作業。
適用於
GetGattServicesForUuidAsync(Guid, BluetoothCacheMode)
傳回具有指定 UUID 之藍牙 LowEnergy 裝置的 GattDeviceServices。
public:
virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetGattServicesForUuidAsync(Platform::Guid serviceUuid, BluetoothCacheMode cacheMode) = GetGattServicesForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetGattServicesForUuidWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(winrt::guid const& serviceUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetGattServicesForUuidWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesForUuidAsync(Guid serviceUuid, BluetoothCacheMode cacheMode);
function getGattServicesForUuidAsync(serviceUuid, cacheMode)
Public Function GetGattServicesForUuidAsync (serviceUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattDeviceServicesResult)
參數
- serviceUuid
-
Guid
Platform::Guid
winrt::guid
服務 UUID。
- cacheMode
- BluetoothCacheMode
快取模式。
傳回
傳回使用 GattDeviceServicesResult 完成的非同步作業。
- 屬性
Windows 需求
裝置系列 |
Windows 10 Creators Update (已於 10.0.15063.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
|
應用程式功能 |
bluetooth
|