共用方式為


GattDeviceService.GetIncludedServicesForUuidAsync 方法

定義

多載

GetIncludedServicesForUuidAsync(Guid)

從與這個 GattDeviceService 實例相關聯的 serviceUuid 取得包含的服務。

GetIncludedServicesForUuidAsync(Guid, BluetoothCacheMode)

從與這個 GattDeviceService 實例相關聯的 serviceUuid 取得包含的服務。

GetIncludedServicesForUuidAsync(Guid)

從與這個 GattDeviceService 實例相關聯的 serviceUuid 取得包含的服務。

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

參數

serviceUuid
Guid

Platform::Guid

winrt::guid

以標準 GUID 物件表示的 128 位藍牙 GATT 服務 UUID。

傳回

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

屬性

Windows 需求

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

適用於

GetIncludedServicesForUuidAsync(Guid, BluetoothCacheMode)

從與這個 GattDeviceService 實例相關聯的 serviceUuid 取得包含的服務。

public:
 virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetIncludedServicesForUuidAsync(Platform::Guid serviceUuid, BluetoothCacheMode cacheMode) = GetIncludedServicesForUuidAsync;
/// [Windows.Foundation.Metadata.Overload("GetIncludedServicesForUuidWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(winrt::guid const& serviceUuid, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetIncludedServicesForUuidWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesForUuidAsync(Guid serviceUuid, BluetoothCacheMode cacheMode);
function getIncludedServicesForUuidAsync(serviceUuid, cacheMode)
Public Function GetIncludedServicesForUuidAsync (serviceUuid As Guid, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattDeviceServicesResult)

參數

serviceUuid
Guid

Platform::Guid

winrt::guid

以標準 GUID 物件表示的 128 位藍牙 GATT 服務 UUID。

cacheMode
BluetoothCacheMode

快取模式。

傳回

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

屬性

Windows 需求

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

適用於