GattDeviceService.GetAllCharacteristics 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得屬於這個 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
|