Share via


BluetoothLEDevice.GetGattServicesAsync Method

Definition

Overloads

GetGattServicesAsync()

Gets the GattDeviceServices for this Bluetooth LowEnergy device.

GetGattServicesAsync(BluetoothCacheMode)

Returns the GattDeviceServices for this Bluetooth LowEnergy device with the specified cache mode.

GetGattServicesAsync()

Gets the GattDeviceServices for this Bluetooth LowEnergy device.

[Windows.Foundation.Metadata.Overload("GetGattServicesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesAsync();

Returns

Returns an asynchronous operation that completes with a GattDeviceServicesResult.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Applies to

GetGattServicesAsync(BluetoothCacheMode)

Returns the GattDeviceServices for this Bluetooth LowEnergy device with the specified cache mode.

[Windows.Foundation.Metadata.Overload("GetGattServicesWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetGattServicesAsync(BluetoothCacheMode cacheMode);

Parameters

cacheMode
BluetoothCacheMode

The cache mode.

Returns

Returns an asynchronous operation that completes with a GattDeviceServicesResult.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Applies to