GattDeviceService.GetAllCharacteristics 方法

定义

获取属于此 GattDeviceService 实例的所有特征的集合。

重要

GetAllCharacteristics API 已弃用,将来的 Windows 版本中可能不可用。 请改用 GetCharacteristicsAsync

public:
 virtual IVectorView<GattCharacteristic ^> ^ GetAllCharacteristics() = GetAllCharacteristics;
IVectorView<GattCharacteristic> GetAllCharacteristics();
/// [Windows.Foundation.Metadata.Deprecated("Use GetCharacteristicsAsync instead of GetAllCharacteristics.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IVectorView<GattCharacteristic> GetAllCharacteristics();
public IReadOnlyList<GattCharacteristic> GetAllCharacteristics();
[Windows.Foundation.Metadata.Deprecated("Use GetCharacteristicsAsync instead of GetAllCharacteristics.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public IReadOnlyList<GattCharacteristic> GetAllCharacteristics();
function getAllCharacteristics()
Public Function GetAllCharacteristics () As IReadOnlyList(Of GattCharacteristic)

返回

属于此 GattDeviceService 实例的所有特征的集合。

属性

Windows 要求

应用功能
bluetooth

适用于