共用方式為


BluetoothLEDevice.GetGattServicesAsync 方法

定義

多載

GetGattServicesAsync()

取得此藍牙 LowEnergy 裝置的 GattDeviceServices。

GetGattServicesAsync(BluetoothCacheMode)

傳回具有指定快取模式之此藍牙 LowEnergy 裝置的 GattDeviceServices。

GetGattServicesAsync()

取得此藍牙 LowEnergy 裝置的 GattDeviceServices。

public:
 virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetGattServicesAsync() = GetGattServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetGattServicesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetGattServicesAsync();
[Windows.Foundation.Metadata.Overload("GetGattServicesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesAsync();
function getGattServicesAsync()
Public Function GetGattServicesAsync () As IAsyncOperation(Of GattDeviceServicesResult)

傳回

傳回使用 GattDeviceServicesResult 完成的非同步作業。

屬性

Windows 需求

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

適用於

GetGattServicesAsync(BluetoothCacheMode)

傳回具有指定快取模式之此藍牙 LowEnergy 裝置的 GattDeviceServices。

public:
 virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetGattServicesAsync(BluetoothCacheMode cacheMode) = GetGattServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetGattServicesWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetGattServicesAsync(BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetGattServicesWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesAsync(BluetoothCacheMode cacheMode);
function getGattServicesAsync(cacheMode)
Public Function GetGattServicesAsync (cacheMode As BluetoothCacheMode) As IAsyncOperation(Of GattDeviceServicesResult)

參數

cacheMode
BluetoothCacheMode

快取模式。

傳回

傳回使用 GattDeviceServicesResult 完成的非同步作業。

屬性

Windows 需求

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

適用於