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

适用于