語言

BluetoothDevice.GetRfcommServicesAsync 方法

定義

多載

名稱 Description
GetRfcommServicesAsync()

擷取遠端藍牙裝置上的所有 Rfcomm 服務。

GetRfcommServicesAsync(BluetoothCacheMode)

擷取遠端藍牙裝置上所有快取的 Rfcomm 服務。

GetRfcommServicesAsync()

擷取遠端藍牙裝置上的所有 Rfcomm 服務。

public:
 virtual IAsyncOperation<RfcommDeviceServicesResult ^> ^ GetRfcommServicesAsync() = GetRfcommServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetRfcommServicesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync();
[Windows.Foundation.Metadata.Overload("GetRfcommServicesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync();
function getRfcommServicesAsync()
Public Function GetRfcommServicesAsync () As IAsyncOperation(Of RfcommDeviceServicesResult)

傳回

非同步操作完成後,回傳一個 RfcommDeviceServicesResult 物件。

屬性

Windows 需求

規格需求 Description
裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
應用程式功能
bluetooth

另請參閱

適用於

GetRfcommServicesAsync(BluetoothCacheMode)

擷取遠端藍牙裝置上所有快取的 Rfcomm 服務。

public:
 virtual IAsyncOperation<RfcommDeviceServicesResult ^> ^ GetRfcommServicesAsync(BluetoothCacheMode cacheMode) = GetRfcommServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetRfcommServicesWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync(BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetRfcommServicesWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync(BluetoothCacheMode cacheMode);
function getRfcommServicesAsync(cacheMode)
Public Function GetRfcommServicesAsync (cacheMode As BluetoothCacheMode) As IAsyncOperation(Of RfcommDeviceServicesResult)

參數

cacheMode
BluetoothCacheMode

快取模式。

傳回

非同步操作完成後,回傳一個 RfcommDeviceServicesResult 物件。

屬性

Windows 需求

規格需求 Description
裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
應用程式功能
bluetooth

另請參閱

適用於