BluetoothLEDevice.GetGattServicesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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)
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.
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)
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
|