GattDeviceService.GetIncludedServicesAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetIncludedServicesAsync() |
取得與此 GattDeviceService 實例相關聯的內含服務。 |
GetIncludedServicesAsync(BluetoothCacheMode) |
取得與此 GattDeviceService 實例相關聯的內含服務。 |
GetIncludedServicesAsync()
取得與此 GattDeviceService 實例相關聯的內含服務。
public:
virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetIncludedServicesAsync() = GetIncludedServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetIncludedServicesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync();
[Windows.Foundation.Metadata.Overload("GetIncludedServicesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync();
function getIncludedServicesAsync()
Public Function GetIncludedServicesAsync () As IAsyncOperation(Of GattDeviceServicesResult)
傳回
使用 GattDeviceServicesResult 物件完成的非同步作業。
- 屬性
Windows 需求
裝置系列 |
Windows 10 Creators Update (已於 10.0.15063.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
|
應用程式功能 |
bluetooth
|
適用於
GetIncludedServicesAsync(BluetoothCacheMode)
取得與此 GattDeviceService 實例相關聯的內含服務。
public:
virtual IAsyncOperation<GattDeviceServicesResult ^> ^ GetIncludedServicesAsync(BluetoothCacheMode cacheMode) = GetIncludedServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetIncludedServicesWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync(BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetIncludedServicesWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattDeviceServicesResult> GetIncludedServicesAsync(BluetoothCacheMode cacheMode);
function getIncludedServicesAsync(cacheMode)
Public Function GetIncludedServicesAsync (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
|