Bagikan melalui


BluetoothLEDevice.GetGattServicesForUuidAsync Metode

Definisi

Overload

GetGattServicesForUuidAsync(Guid)

Mengembalikan GattDeviceServices untuk perangkat Bluetooth LowEnergy dengan UUID yang ditentukan.

GetGattServicesForUuidAsync(Guid, BluetoothCacheMode)

Mengembalikan GattDeviceServices untuk perangkat Bluetooth LowEnergy dengan UUID yang ditentukan.

GetGattServicesForUuidAsync(Guid)

Mengembalikan GattDeviceServices untuk perangkat Bluetooth LowEnergy dengan UUID yang ditentukan.

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

Parameter

serviceUuid
Guid

Platform::Guid

winrt::guid

UUID layanan.

Mengembalikan

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

Keterangan

Mengembalikan operasi asinkron yang selesai dengan GattDeviceServicesResult.

Berlaku untuk

GetGattServicesForUuidAsync(Guid, BluetoothCacheMode)

Mengembalikan GattDeviceServices untuk perangkat Bluetooth LowEnergy dengan UUID yang ditentukan.

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

Parameter

serviceUuid
Guid

Platform::Guid

winrt::guid

UUID layanan.

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