BluetoothLEDevice.GetGattServicesAsync Metode

Definisi

Overload

GetGattServicesAsync()

Mendapatkan GattDeviceServices untuk perangkat Bluetooth LowEnergy ini.

GetGattServicesAsync(BluetoothCacheMode)

Mengembalikan GattDeviceServices untuk perangkat Bluetooth LowEnergy ini dengan mode cache yang ditentukan.

GetGattServicesAsync()

Mendapatkan GattDeviceServices untuk perangkat Bluetooth LowEnergy ini.

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)

Mengembalikan

Mengembalikan operasi asinkron yang selesai dengan GattDeviceServicesResult.

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Creators Update (diperkenalkan dalam 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v4.0)
Kemampuan aplikasi
bluetooth

Berlaku untuk

GetGattServicesAsync(BluetoothCacheMode)

Mengembalikan GattDeviceServices untuk perangkat Bluetooth LowEnergy ini dengan mode cache yang ditentukan.

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)

Parameter

cacheMode
BluetoothCacheMode

Mode cache.

Mengembalikan

Mengembalikan operasi asinkron yang selesai dengan GattDeviceServicesResult.

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Creators Update (diperkenalkan dalam 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v4.0)
Kemampuan aplikasi
bluetooth

Berlaku untuk