共用方式為


BluetoothDevice.RfcommServices 屬性

定義

取得裝置所支援之 RFCOMM 服務的唯讀清單。

重要

RfcommServices API 已被取代,未來版本的 Windows 可能無法使用。 請改用 GetRfcommServicesAsync

public:
 property IVectorView<RfcommDeviceService ^> ^ RfcommServices { IVectorView<RfcommDeviceService ^> ^ get(); };
IVectorView<RfcommDeviceService> RfcommServices();
/// [get: Windows.Foundation.Metadata.Deprecated("Use GetRfcommServicesAsync instead of RfcommServices.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
IVectorView<RfcommDeviceService> RfcommServices();
public IReadOnlyList<RfcommDeviceService> RfcommServices { get; }
public IReadOnlyList<RfcommDeviceService> RfcommServices { [Windows.Foundation.Metadata.Deprecated("Use GetRfcommServicesAsync instead of RfcommServices.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")] get; }
var iVectorView = bluetoothDevice.rfcommServices;
Public ReadOnly Property RfcommServices As IReadOnlyList(Of RfcommDeviceService)

屬性值

裝置支援的 RFCOMM 服務唯讀清單。

屬性

Windows 需求

應用程式功能
bluetooth

適用於