Поделиться через


GattDeviceService.GetAllCharacteristics Метод

Определение

Возвращает коллекцию всех характеристик, принадлежащих данному экземпляру GattDeviceService.

Важно!

API GetAllCharacteristics является устаревшим и может быть недоступен в будущих версиях 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

Применяется к