共用方式為


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

適用於